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

docs: change class name calendar to root in the examples #2347

Merged
merged 1 commit into from
Aug 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/docs/styling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ They are the value of the [`UI`](../api/enumerations/UI.md), [`DayFlag`](../api/
For example, to change the class name of the calendar container:

```tsx
<DayPicker classNames={{ calendar: "my-calendar" }} />
<DayPicker classNames={{ root: "my-calendar" }} />
```

Or the disabled days:
Expand Down Expand Up @@ -166,7 +166,7 @@ export function MyCalendar() {
classNames={{
today: `border-amber-500`, // Add a border to today's date
selected: `bg-amber-500 border-amber-500 text-white`, // Highlight the selected day
calendar: `${defaultClassNames.calendar} shadow-lg p-5` // Add a shadow to the calendar
root: `${defaultClassNames.root} shadow-lg p-5`, // Add a shadow to the root element
chevron: `${defaultClassNames.chevron} fill-amber-500` // Change the color of the chevron
}}
/>
Expand Down