Commit 4090706
feat(docs-app,ui-buttons): extend prop playground to all components
Auto-inject the PropEditor playground on every component doc page from
`Document`, using the react-docgen metadata it already has (no runtime fetch).
Simple standalone components get a single-element form; compound components get
a curated composition playground that edits the parent and a representative
child together, driven by a registry.
- Generalize PropEditor to N sections plus a JSX template with `{{id}}`
attribute placeholders; simple mode is one section with the default
serializer.
- Add a registry of custom composition playgrounds (Menu, Tabs, Table, Modal,
Select, Flex, Grid, ... 17 total) plus a force-simple set for prop-driven
components whose subcomponents are internal (Rating, Pagination, Calendar).
- Gate: real compound components (dotted subcomponent ids) fall back to their
README examples unless a custom entry exists; components whose only children
are internal facades (Checkbox, FormField) still get the simple form.
- Stabilize config identity and key the seed effect on a structural signature
so composition edits are not wiped on every render.
- Drop the now-redundant manual PropEditor embed from the Button v2 README.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cb618ac commit 4090706
6 files changed
Lines changed: 786 additions & 66 deletions
File tree
- packages
- __docs__/src
- Document
- PropEditor
- ui-buttons/src/Button/v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
157 | 243 | | |
158 | 244 | | |
159 | 245 | | |
| |||
467 | 553 | | |
468 | 554 | | |
469 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
470 | 559 | | |
471 | 560 | | |
472 | 561 | | |
| |||
0 commit comments