Component demo
Used throughout this docs site
This site wraps each example in ComponentDemo: title, preview, and a code toggle.
Preview areaDoc helper: Card with title, preview/code toggle, and syntax-highlighted snippet.
Default usage you can copy and adapt.
Used throughout this docs site
This site wraps each example in ComponentDemo: title, preview, and a code toggle.
Preview areaThe props you are most likely to need, with types and defaults.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string | Yes | — | Example title |
| code | string | Yes | — | Source shown in code view |