You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the styled(MyComponent) notation and MyComponent does not render the passed-in className prop, then no styles will be applied. To avoid this issue, make sure your component attaches the passed-in className to a DOM node
It would be perfect if the DayPicker component supported the className property 😃 ❤️
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there !
I'm using the
styled-components
lib in several projects and theDayPicker
component doesn't seem to be able to be styled directly with it.For example:
From the styled-components documentation (https://styled-components.com/docs/advanced#styling-normal-react-components):
It would be perfect if the
DayPicker
component supported theclassName
property 😃 ❤️In addition, the support of this property seems to be a good React practice to be able to style a component: https://reactjs.org/docs/faq-styling.html#how-do-i-add-css-classes-to-components
Beta Was this translation helpful? Give feedback.
All reactions