Time Picker

A Material Design 3 time picker dialog with an analog clock face, AM/PM toggle, and keyboard input mode. Supports 12-hour and 24-hour formats.

Preview

<script>
  import { TimePicker } from '@vultra/md3';

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

<TimePicker bind:value={time} />

Usage

<script>
  import { TimePicker } from '@vultra/md3';

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

<TimePicker
  bind:value={time}
  format="12h"
  onchange={(t) => console.log('New time:', t)}
/>

Features

  • Analog clock face with hour and minute rings (auto-switches from hours to minutes)
  • Keyboard input mode (type HH:MM, Enter to commit)
  • AM/PM toggle in 12-hour format
  • 24-hour format with inner/outer hour rings

Props

PropTypeDefaultDescription
valuestring (bindable)'12:00'Time value in HH:MM format
format'12h' \| '24h''24h'Time format
onchange(time: string) => voidundefinedCallback when value changes
classstringundefinedAdditional CSS classes

Install

npx @vultra/cli add md3-time-picker