Skip to content

How to add custom styles to react-time-picker__wrapper class? #138

Answered by wojtekmaj
agawankar asked this question in Q&A
Discussion options

You must be logged in to vote

Pass className="myClassName" and the use nested styles:

.myClassName .react-time-picker__wrapper {
  outline: 2px solid red;
}

https://codesandbox.io/s/react-time-picker-custom-css-xwk0uc

You can also style it that way with e.g. styled-components:

https://codesandbox.io/s/react-time-picker-styled-components-gg7djb

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agawankar
Comment options

Answer selected by wojtekmaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants