Allow styles or classNames passthrough
See original GitHub issueI’m trying to add a simple variation of small-caps to a Title
component. I don’t think this is possible today unless Tremor components pass through the styles
or className
props. I prefer to use Tailwind (I love that Tremor is built on top of it) and I would love to be able to add tailwind classes to Tremor components.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Passing in class names to react components
Important thing to note: if props.styleName is optional and you omit it you will have undefined in your class list. So {`pill ${...
Read more >Pass class names as props to React components
To pass class names as props to a React component, pass a string containing the class names as a prop. Destructure the prop...
Read more >Class Names - Compiled CSS-in-JS
Composing styles through props allows your consumers to add and override styles. Make sure to pass through className and style . View transformed...
Read more >Styles & CSS
Learn how to style components in Astro with scoped styles, external CSS, and tooling like Sass and PostCSS.
Read more >Extracting reusable Tailwind CSS / React components - MakerX
The className attribute can easily get out of hand with all the Tailwind CSS classes ... This allows us to write really terse...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A small trick that I use as a workaround maybe someone need is.
I do a wrapper div and then add the CSS with a selector:
At least need to edit the Card rounded and shadow classes