A month grid to pick a date.
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Due on 10/29/2026
Usage
<script lang="ts">
import {
type DateValue,
getLocalTimeZone,
today,
} from "@internationalized/date";
import { Calendar } from "@orochibraru/ui/calendar";
let dueDate = $state<DateValue | undefined>(today(getLocalTimeZone()));
</script>
<div class="flex flex-wrap items-start gap-6">
<Calendar type="single" bind:value={dueDate} class="rounded-lg border" />
<Calendar
type="single"
captionLayout="dropdown"
minValue={today(getLocalTimeZone())}
class="rounded-lg border"
/>
<p class="text-muted-foreground text-sm">
Due on {dueDate?.toDate(getLocalTimeZone()).toLocaleDateString() ?? "—"}
</p>
</div>