Minimal Layout
{component}/
βββ code.tsx
βββ demos/
β βββ default/
β βββ code.demo.tsx
βββ globals.css
βββ tailwind.config.js
- Keep logic in
code.tsx, content in demos
- Use props to customize behavior and content
- Multiple demos allowed (e.g.,
advanced/)
- Include realistic content and states in demos
Dependencies
- Community components and npm packages are allowed
- Declare and import what you use inside demos
Prefer small, focused components β Theyβre easier to use and maintain.
Ensure responsive behavior β Test on different screen sizes.
Provide sensible defaults β Components should work out of the box.