Add a new design system component to packages/design following project constitution.
Component structure (per constitution):
- •ComponentName.tsx – main UI
- •ComponentName.skeleton.tsx – skeleton variant
- •ComponentName.error.tsx – error variant (when applicable)
- •index.ts – exports
- •Add design-system.css variants if needed
Rules:
- •Generic only: no API/SDK imports; standard TypeScript and React types
- •Props: string, number, boolean, ReactNode, ReactElement, Record<string, unknown>
- •Tailwind only; use design-system.css tokens (btn, card, input-base, skeleton)
- •British English, full words
Component to add: $ARGUMENTS
- •Create the component directory under primitives/, components/, blocks/, or layout/
- •Implement main component, skeleton, error (if needed), index
- •Export from packages/design/src/index.ts
- •Add a Storybook story in apps/storybook with skeleton and error variants