Is there a way to do custom style for react-calendar using styled-component from react-datepicker ? #623
robert-truong
started this conversation in
General
Replies: 1 comment
-
Yes, kinda. Since styled-components only add className to root element being styled, you can write styles this way, but to style specific elements inside this root element you'll need to use nesting and rely on class based selectors. Like this: const MyDatePicker = styled(DatePicker)`
.react-calendar {
// ...
}
`; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Is there a way to do custom style for react-calendar using styled-component from react-datepicker ?
Beta Was this translation helpful? Give feedback.
All reactions