Skip to content

Commit 2ae35ef

Browse files
authored
docs: restore v8 website styles (#2982)
1 parent cdc5a64 commit 2ae35ef

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

apps/website/examples-v8/react-day-picker-v8.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import v8Style from "!raw-loader!react-day-picker-v8/dist/style.css";
12
import {
23
DayPicker as DayPickerV8,
34
type DayPickerProps,
45
} from "react-day-picker-v8";
5-
import styles from "react-day-picker-v8/dist/style.module.css";
66

77
export {
88
Button,
@@ -26,5 +26,10 @@ export {
2626
} from "react-day-picker-v8";
2727

2828
export function DayPicker(props: DayPickerProps) {
29-
return <DayPickerV8 {...props} classNames={styles} />;
29+
return (
30+
<>
31+
<style>{v8Style.toString()}</style>
32+
<DayPickerV8 {...props} />
33+
</>
34+
);
3035
}

0 commit comments

Comments
 (0)