Theme

Start Here

Start from the smallest working snippet, then move to interactive examples and the full API contract below.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { RangeCalendar } from '@dryui/ui';
</script>

<RangeCalendar.Root>
  <RangeCalendar.Grid>...</RangeCalendar.Grid>
</RangeCalendar.Root>

Import options

Root package

ts
import { RangeCalendar } from '@dryui/ui'

Per-component subpath

ts
import { RangeCalendar } from '@dryui/ui/range-calendar'

Customize

Use the interactive examples to see common variants, states, and composition patterns before building your own.

Default

March 2026

— to —

svelte
<script lang="ts">
  let startDate = $state(null);
  let endDate = $state(null);
</script>
<RangeCalendar.Root bind:startDate bind:endDate>
  <RangeCalendar.Grid />
</RangeCalendar.Root>

Structure

Compound components always start with RangeCalendar.Root. Use this structure block to understand required wrappers before you wire state or styling.

RangeCalendar.Root
  RangeCalendar.Grid
RangeCalendar.Root RangeCalendar.Grid

Compose

The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.

Compound component. Start with RangeCalendar.Root, then add only the parts you need.

RangeCalendar.Grid

RangeCalendar.Root

Prop Type Default Required Bindable
startDate
Date | null
$bindable<Date | null>(null)
endDate
Date | null
$bindable<Date | null>(null)
locale
string
min
Date | null
max
Date | null
disabled
boolean
children
Snippet

Forwards <div> attributes via rest props. Common examples: id, style, role.

RangeCalendar.Grid

Prop Type Default Required Bindable

Forwards <div> attributes via rest props. Common examples: id, style, role.