ui
Build reusable UI components.
Component principles
- Single responsibility
- Props interface is the API
- Composition over props drilling
- Controlled vs uncontrolled
- Proper TypeScript typing
- Accessible by default
Design system
- Consistent spacing (4/8px grid)
- Color tokens for theming
- Typography scale
- Component variants
- Storybook for docs