Skip to content

Commit 5ae65ff

Browse files
committed
feat: enhance Datepicker documentation and example to include 'Decades' in Views enum
1 parent 79a9ee4 commit 5ae65ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/web/content/docs/components/datepicker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The `labelTodayButton` and `labelClearButton` can also be used to update the tex
3131

3232
You can use the `filterDate` prop to filter out specific dates from the datepicker component. This is useful if you want to disable certain dates or only allow selection of weekdays, for example.
3333

34-
The `Views` enum can be used to determine the current view of the datepicker, such as `Days`, `Months`, or `Years`.
34+
The `Views` enum can be used to determine the current view of the datepicker, such as `Days`, `Months`, `Years` or `Decades`.
3535

3636
<Example name="datepicker.filter" />
3737

apps/web/examples/datepicker/datepicker.filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Datepicker, Views } from "flowbite-react";
22
import type { CodeData } from "~/components/code-demo";
33

44
const code = `
5-
import { Datepicker } from "flowbite-react";
5+
import { Datepicker, Views } from "flowbite-react";
66
77
const filterFn = (date: Date, view: Views) => {
88
if (view === Views.Days) {

0 commit comments

Comments
 (0)