Skip to content

Commit

Permalink
website: add docs for controlled month
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Dec 15, 2024
1 parent 04c11a1 commit 17bc77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/docs/navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { useState } from "react";
import { DayPicker } from "react-day-picker";

export function Controlled() {
const [month, setMonth] = useState(new Date());
const [month, setMonth] = useState(new Date(2024, 9)); // Start from October 2024
return <DayPicker month={month} onMonthChange={setMonth} />;
}
```
Expand Down

0 comments on commit 17bc77a

Please sign in to comment.