Range Calendar

A calendar for selecting a start and end date.

SuMoTuWeThFrSa
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

npx lily-svelte@latest add range-calendar

Built by levish. The source code is available on GitHub.

Quiet by design.