react-day-picker icon indicating copy to clipboard operation
react-day-picker copied to clipboard

Improve custom components examples

Open gpbl opened this issue 1 year ago • 2 comments

    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 https://github.com/gpbl/react-day-picker/discussions/1672#discussioncomment-4882384

gpbl avatar Mar 08 '23 19:03 gpbl

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

Anj1nST avatar Feb 16 '24 11:02 Anj1nST

<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 />

GregorGabric avatar Feb 16 '24 16:02 GregorGabric