Support passing custom className
See original GitHub issueAdd forwarding of className
prop to root div on Picker
component
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to pass custom class name on react and use scss?
I am trying to create a react component that has the class name as props being passed, I have managed sending the props...
Read more >Pass class names as props to React components | bobbyhadz
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 >Passing className to components in React - Daily Dev Tips
In React, we are familiar with the concepts of a className on components. It's the way React adds the class attribute to an...
Read more >Styling and CSS - React
Pass a string as the className prop: render() { return <span className="menu navigation-menu">Menu</span> }. It is common for CSS classes to depend on...
Read more >How To Style React Components | DigitalOcean
After creating the custom hook, you passed the custom class names to the className property. Save the file. Notice that you are using...
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
Also, styled-wrappers leads to unnecessary DOM nodes. In case when there are too many, for example
Emoji
components, that could be an issue.Using them in this style would be quite handy:
@nolanlawson, no, but passing
className
is more convenientwould pass generated
className
toPicker
With selectors you would need to do it like this