Skip to main content

Minimal Layout

{component}/
β”œβ”€β”€ code.tsx
β”œβ”€β”€ demos/
β”‚   └── default/
β”‚       └── code.demo.tsx
β”œβ”€β”€ globals.css
└── tailwind.config.js

Rules

  • 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

Tips

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.