Skip to content

Commit

Permalink
feat: add Root to custom components
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jul 13, 2024
1 parent 0fec13b commit 6055e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DayPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export function DayPicker(props: DayPickerProps) {
<dayPickerContext.Provider
value={{ ...calendar, ...selection, ...modifiers }}
>
<div
<components.Root
className={[classNames[UI.Root], props.className]
.filter(Boolean)
.join(" ")}
Expand Down Expand Up @@ -584,7 +584,7 @@ export function DayPicker(props: DayPickerProps) {
{props.footer}
</components.Footer>
)}
</div>
</components.Root>
</dayPickerContext.Provider>
);
}

0 comments on commit 6055e45

Please sign in to comment.