build-component
Build a premium UI component following design system
SKILL.mdskills/build-component/SKILL.md
GitHubComponent Build Protocol
- Check if similar component exists in codebase
- Define props interface with TypeScript (strict, no
any) - Implement with: shadcn/ui base + custom styling
- Add ALL states: loading, error, empty, populated
- Add Framer Motion animations (enter, hover, exit)
- Ensure WCAG 2.1 AA accessibility
- Add keyboard navigation support
- Test at 375px, 768px, 1024px, 1440px, 1920px
- Write unit test with React Testing Library
- Export from components/ui/index.ts barrel file