You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/docs/components/datepicker.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The Datepicker component provides an interactive calendar interface for selectin
27
27
28
28
Use the Datepicker for single date selection. The selected date is bound to the `value` prop.
29
29
30
-
```svelte example
30
+
```svelte example class="h-[430px]"
31
31
<script lang="ts">
32
32
import { Datepicker, P } from "flowbite-svelte";
33
33
let selectedDate = $state<Date | undefined>(undefined);
@@ -43,7 +43,7 @@ Use the Datepicker for single date selection. The selected date is bound to the
43
43
44
44
Enable date range selection using the `range` prop. The start and end dates are bound to `rangeFrom` and `rangeTo` respectively.
45
45
46
-
```svelte example
46
+
```svelte example class="h-[430px]"
47
47
<script lang="ts">
48
48
import { Datepicker, P } from "flowbite-svelte";
49
49
@@ -67,7 +67,7 @@ Enable date range selection using the `range` prop. The start and end dates are
67
67
68
68
Use the `inline` prop to display the calendar without a popup.
69
69
70
-
```svelte example
70
+
```svelte example class="h-[430px]"
71
71
<script lang="ts">
72
72
import { Datepicker, P } from "flowbite-svelte";
73
73
let selectedDate = $state<Date | undefined>(undefined);
@@ -83,7 +83,7 @@ Use the `inline` prop to display the calendar without a popup.
83
83
84
84
Customize the primary color of the Datepicker using the `color` prop.
85
85
86
-
```svelte example
86
+
```svelte example class="h-[430px]"
87
87
<script lang="ts">
88
88
import { Datepicker } from "flowbite-svelte";
89
89
</script>
@@ -97,7 +97,7 @@ Customize the primary color of the Datepicker using the `color` prop.
97
97
98
98
Set a specific locale for date formatting using the `locale` prop.
99
99
100
-
```svelte example
100
+
```svelte example class="h-[430px]"
101
101
<script lang="ts">
102
102
import { Datepicker } from "flowbite-svelte";
103
103
</script>
@@ -111,7 +111,7 @@ Set a specific locale for date formatting using the `locale` prop.
111
111
112
112
Specify a custom date format using the `dateFormat` prop.
113
113
114
-
```svelte example
114
+
```svelte example class="h-[430px]"
115
115
<script lang="ts">
116
116
import { Datepicker } from "flowbite-svelte";
117
117
</script>
@@ -125,7 +125,7 @@ Specify a custom date format using the `dateFormat` prop.
125
125
126
126
Add action buttons (Today, Clear, Apply) using the `showActionButtons` prop. You can also listen for the `clear` and `apply` events to perform specific actions when these buttons are clicked.
127
127
128
-
```svelte example
128
+
```svelte example class="h-[460px]"
129
129
<script lang="ts">
130
130
import { Datepicker, P, type DateOrRange } from "flowbite-svelte";
131
131
let selectedDate = $state<Date | undefined>(undefined);
@@ -154,7 +154,7 @@ Add action buttons (Today, Clear, Apply) using the `showActionButtons` prop. You
154
154
155
155
Add a custom title to the Datepicker using the `title` prop.
156
156
157
-
```svelte example
157
+
```svelte example class="h-[430px]"
158
158
<script lang="ts">
159
159
import { Datepicker } from "flowbite-svelte";
160
160
</script>
@@ -168,7 +168,7 @@ Add a custom title to the Datepicker using the `title` prop.
168
168
169
169
Use the `disabled` prop to disable the Datepicker.
170
170
171
-
```svelte example
171
+
```svelte example class="h-[430px]"
172
172
<script lang="ts">
173
173
import { Datepicker } from "flowbite-svelte";
174
174
</script>
@@ -182,7 +182,7 @@ Use the `disabled` prop to disable the Datepicker.
182
182
183
183
Mark the Datepicker as a required field using the `required` prop.
184
184
185
-
```svelte example
185
+
```svelte example class="h-[430px]"
186
186
<script lang="ts">
187
187
import { Datepicker } from "flowbite-svelte";
188
188
</script>
@@ -196,7 +196,7 @@ Mark the Datepicker as a required field using the `required` prop.
196
196
197
197
Set a custom first day of the week using the `firstDayOfWeek` prop.
198
198
199
-
```svelte example
199
+
```svelte example class="h-[430px]"
200
200
<script lang="ts">
201
201
import { Datepicker } from "flowbite-svelte";
202
202
</script>
@@ -210,7 +210,7 @@ Set a custom first day of the week using the `firstDayOfWeek` prop.
210
210
211
211
Listen for date selection events using the `onselect` event.
212
212
213
-
```svelte example
213
+
```svelte example class="h-[430px]"
214
214
<script lang="ts">
215
215
import { Datepicker, type DateOrRange } from "flowbite-svelte";
0 commit comments