Description
Documentation pages show static code snippets with Prism syntax highlighting but no way to edit props and see results live.
Options
- Sandpack (CodeSandbox) — full in-browser bundler, supports React
- react-live — lightweight live code editor with preview
- Custom — CodeMirror/Monaco editor + eval (more control, more work)
Features
- Editable code with syntax highlighting
- Live preview that updates on every keystroke
- Reset to original code button
- Copy code button
- Mobile-friendly layout (stacked editor + preview)
- Pre-loaded with all Mario Charts components
Tasks
Why this matters
Dramatically reduces time-to-understanding for new users. This is a key feature where shadcn documentation excels.
Description
Documentation pages show static code snippets with Prism syntax highlighting but no way to edit props and see results live.
Options
Features
Tasks
Why this matters
Dramatically reduces time-to-understanding for new users. This is a key feature where shadcn documentation excels.