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
children
over bundling multiple elements into one.
Semantic Markup
- Use semantic HTML elements (
table
,tr
,dl
,ul
,li
, etc.) for structure. - Do not use
div
s where a semantic element is appropriate (e.g., don’t usediv
for tables or lists).