Range Calendar
A calendar for selecting a start and end date.
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
31 | 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 1 | 2 | 3 | 4 |
<script lang="ts">
import { RangeCalendar } from "$lib/components/ui/range-calendar";
import { today, getLocalTimeZone } from "@internationalized/date";
const start = today(getLocalTimeZone());
let value = $state({ start, end: start.add({ days: 4 }) });
</script>
<RangeCalendar bind:value /> Installation
Install the lily base, the dependency, and `utils` (run once per project).
npx lily-svelte@latest init
npm install @internationalized/date