We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5113a9 commit 8093b13Copy full SHA for 8093b13
src/components/demos/range-calendar-demo.svelte
@@ -1,17 +1,13 @@
1
<script lang="ts">
2
- import { RangeCalendar, type DateRange } from "$lib";
+ import { RangeCalendar } from "$lib";
3
import { cn } from "@/utils";
4
import { CaretRight, CaretLeft } from "phosphor-svelte";
5
- let value: DateRange | undefined = undefined;
6
</script>
7
8
-<div>start: {value?.start}</div>
9
-<div>end: {value?.end}</div>
10
<RangeCalendar.Root
11
class="mt-6 rounded-15px border border-dark-10 bg-background p-[22px] shadow-card"
12
let:months
13
let:weekdays
14
- bind:value
15
weekdayFormat="short"
16
>
17
<RangeCalendar.Header class="flex items-center justify-between">
0 commit comments