Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve custom components examples #1719

Open
gpbl opened this issue Mar 8, 2023 · 2 comments
Open

Improve custom components examples #1719

gpbl opened this issue Mar 8, 2023 · 2 comments
Labels
Type: Documentation Documentation only changes

Comments

@gpbl
Copy link
Owner

gpbl commented Mar 8, 2023

    In my use case, I insert markings in specific days that contain additional data. Think of it as bookings or events in a calendar. It could be as simple as colored shapes, or icons, or marking the whole day container with a border. Something along these lines perhaps?

Originally posted by @amivag in #1672 (reply in thread)

@gpbl gpbl added the Type: Documentation Documentation only changes label Mar 8, 2023
@Anj1nST
Copy link

Anj1nST commented Feb 16, 2024

Have the same problem - with documentation I can't get how to change the root component (className '.rdp). It's so unclear. I just want to change background and place it in the end of the container. I've tried to apply my classNames, to use modifiers, but I don't understand what modifier shoud I use

@GregorGabric
Copy link

GregorGabric commented Feb 16, 2024

<DayPicker
// this affects the parent class
className={clsx('date-picker-wrapper')}
// these are the modifiers
modifiersClassNames={
selected: 'date-picker-wrapper__selected',
today: 'date-picker-wrapper__today',
disabled: 'date-picker-wrapper__disabled',
}
showOutsideDays
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Documentation only changes
Projects
None yet
Development

No branches or pull requests

3 participants