Component rules (loaded only for component files)
- Semantic HTML first:
<button>for actions,<a href>for navigation, labels for inputs. - Every interactive element works with the keyboard and has an accessible name.
- Props type named
<Component>Props; no default exports for components. - Styling with the design system tokens; no hard-coded colors or spacing values.
- Co-locate tests:
Button.tsxandButton.test.tsx.