Compound Component Pattern
- Build custom components using the compound component pattern (like Radix UI).
- APIs should be declarative, composable, and expose clearly named parts.
- Favor composition via
childrenover bundling multiple elements into one.
Semantic Markup
- Use semantic HTML elements (
table,tr,dl,ul,li, etc.) for structure. - Do not use
divs where a semantic element is appropriate (e.g., don’t usedivfor tables or lists).