Skip to content

How do I add multiple pieces of content & multiple class names on one tile? #603

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

You must be logged in to vote

Adding multiple class names through tileClassName is simple! You can either pass them as an array or merge the strings yourself:
https://codesandbox.io/s/react-calendar-tileclassname-multiple-zc9s1p

Similarly, for tileContent, you can return multiple elements the same way you can from a React component: using array or Fragment:
https://codesandbox.io/s/react-calendar-tilecontent-multiple-b5bfg

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wojtekmaj
Comment options

You must be logged in to vote
0 replies
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