Open discussion - Do we want to drill down HTML props to sub components by default ? #840
Replies: 1 comment 2 replies
-
As an interesting tradeoff, we can use the className prop as described in https://styled-components.com/docs/basics#styling-any-component, so any component we expose can be styled. If we need to style a sub-component, we can just pass className to this sub-component. I think it's better to keep our components closed to the props we specify, allowing to pass all of a default tag props by default to every component we have would open everything too much. That would be understandable for a component library like Material-UI but not really for a business application like Twenty, where we want to compose UIs fast with a coherent and simple design system. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions