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 { DateTimeInput } from '@dryui/ui';
</script>

<DateTimeInput bind:value={appointmentDate} name="appointment" />

Import options

Root package

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

Per-component subpath

ts
import { DateTimeInput } from '@dryui/ui/date-time-input'

Customize

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

Default

06 15 2025
svelte
<script lang="ts">
  let value = $state(new Date(2025, 5, 15, 14, 30));
</script>

<DateTimeInput bind:value />

Sizes

03 23 2026
03 23 2026
03 23 2026
svelte
<DateTimeInput size="sm" />
<DateTimeInput size="md" />
<DateTimeInput size="lg" />

Disabled

03 23 2026
svelte
<DateTimeInput disabled />

Compose

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

Prop Type Default Required Bindable
value
Date
$bindable(new Date())
min
Date
max
Date
disabled
boolean
false
locale
string
'en-US'
name
string
size
smmdlg
'md'

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