00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

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 { TimeInput, Field, Label } from '@dryui/ui';

  let time = $state('09:30');
</script>

<Field.Root>
  <Label>Start time</Label>
  <TimeInput bind:value={time} name="startTime" />
</Field.Root>

Import options

Root package

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

Per-component subpath

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

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable
value
string
Current controlled or bindable value. '' — ✓
disabled
boolean
Prevents interaction and applies disabled styling. false — —
step
number
Step interval used when incrementing numeric values. — — —
size
smmdlg
Size preset affecting density, spacing, or typography. 'md' — —
name
string
Field name used during native form submission. — — —