> ## Documentation Index
> Fetch the complete documentation index at: https://www.beeq.design/llms.txt
> Use this file to discover all available pages before exploring further.

# Time Picker

> Time pickers help users enter or select a time of day as hours, minutes, and seconds, with locale-aware formatting and fewer entry errors.

![BEEQ Time-picker component overview](https://mintcdn.com/beeq/zFWLD2Ond2vY12Ly/components/images/time-picker/time-picker-overview-light.svg?fit=max\&auto=format\&n=zFWLD2Ond2vY12Ly\&q=85\&s=b1b9b5d7c948d3c23b38b73b5e932be0)

Time-picker component overview

Time pickers combine locale-ordered hour, minute, and second segments with a panel of scrollable columns. People can type a time directly or pick it from the panel, and the component keeps the value in a predictable 24-hour format.

> [!NOTE]
>
> Use a time picker when people need to set a time of day. To pick a date and a time together, pair it with a [date picker](https://www.beeq.design/components/date-picker.md). For a short list of fixed slots, such as three delivery windows, a [select](https://www.beeq.design/components/select.md) or radio group is clearer.

## When to use

> [card]
>
> Use time pickers when
>
> * People need to set a specific time of day, such as a meeting start or an alarm
> * The time must follow local conventions, like segment order and AM/PM labels
> * You need to limit times with business hours or fixed intervals
> * Typing and picking should both be quick and error-free

> [card]
>
> Do not use time pickers when
>
> * Only a handful of fixed time slots are available
> * People need to enter a duration longer than a day
> * The value is a relative time, like "in 2 hours"
> * An approximate time of day, like "morning", is enough

> [!TIP]
>
> Choose [`bq-date-picker`](https://www.beeq.design/components/date-picker) instead of `bq-time-picker` when users select a calendar date rather than a time of day.

## Patterns

## Instant selection

Each pick in the panel updates the value right away. Use it for most forms, where a time is easy to change later.

## Confirmed selection

With `require-confirm`, panel picks stay a draft in the panel, and the field keeps the current time until people press OK or `Enter`. Use it when a new time triggers a costly change, such as rescheduling a booking.

## Anatomy

![BEEQ Time-picker component anatomy](https://mintcdn.com/beeq/zFWLD2Ond2vY12Ly/components/images/time-picker/time-picker-anatomy-light.svg?fit=max\&auto=format\&n=zFWLD2Ond2vY12Ly\&q=85\&s=35f780c63be60958a0625471555c8ad1)

Time-picker component anatomy

The time picker pairs a labeled, segmented field with a panel of columns, one per time unit. The example uses `second` precision, a 12-hour clock, and a prefix icon to show every part. Keep the label specific and let the locale decide the segment order and labels.

| Part | Element | Description |
| - | - | - |
| **1** | Label | Describes which time the field asks for (`label` slot) |
| **2** | Prefix | Optional icon or text before the time segments (`prefix` slot) |
| **3** | Time segments | The hour, minute, second, and AM/PM controls people focus and edit, ordered for the active locale |
| **4** | Clear button | Removes the current value; hidden with `disable-clear` |
| **5** | Clock trigger | Opens the panel; its icon can be replaced with the `suffix` slot |
| **6** | Panel | The surface that holds the columns and the footer actions |
| **7** | Column | A scrollable list of options for one time unit, under a header that names it and stays in place while the list scrolls |
| **8** | Selected option | The current hour, minute, second, or period, shown with selected styling |
| **9** | Now button | Picks the current time, rounded down to the step; hidden with `disable-now` |
| **10** | OK button | Confirms the selection and closes the panel |

## Design guidelines

**1. Pick the right precision**

Start with the default `minute` precision. Use `hour` for coarse slots, such as opening hours, and `second` only when seconds matter, such as lap times or logs.

**2. Let the locale drive the format**

Set `locale` to the product locale, so segment order, separators, and AM/PM labels match what people expect. The clock is 24-hour by default; set `hour-format="12"` when people expect a 12-hour clock.

**3. Constrain the choices**

Apply `min`, `max`, and step values when business rules are known. Options outside the rules are disabled in the panel, and typed values are clamped when focus leaves the field.

> [!NOTE]
>
> Use steps that divide evenly into the unit, such as 5, 10, 15, or 30 minutes, so the options stay predictable and easy to scan.

> [!TIP]
>
> Keep the clock trigger visible. It signals that a panel is available and gives pointer users a faster way to pick a time.

## Usage

### Default

Use the default configuration when people need to set an hour and minute. Click the field or the clock icon to open the panel, or type the time directly.

> [!NOTE]
>
> The `value` attribute, `min`, and `max` always use a 24-hour wire format, whatever the display: `HH:mm` at minute precision, `HH:00` at hour precision, and `HH:mm:ss` at second precision.
>
> A locale-derived format hint, such as `hh:mm`, shows the expected layout before entry starts. On focus, one segment is active. Typing digits replaces that segment, and typing `A` or `P` sets AM/PM. Paste is not supported. See [Keyboard interaction](#keyboard-interaction) for the full key list.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker name="meeting-time">
  <label slot="label">Meeting time</label>
</bq-time-picker>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<BqTimePicker name="meeting-time">
  <label slot="label">Meeting time</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker name="meeting-time">
      <label slot="label">Meeting time</label>
    </bq-time-picker>
  `
})
export class DefaultTimePickerComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker name="meeting-time">
    <label slot="label">Meeting time</label>
  </BqTimePicker>
</template>
```

## Options

**Allowed `precision` values:** `hour`, `minute` (default), `second`.\

**Allowed `hour-format` values:** `24` (default), `12`.\

**Allowed `validation-status` values:** `none` (default), `error`, `warning`, `success`.\

**Allowed `strategy` values:** `fixed` (default), `absolute`.\

**Allowed `placement` values:** `top`, `top-start`, `top-end`, `right`, `right-start`, `right-end`, `bottom`, `bottom-start`, `bottom-end` (default), `left`, `left-start`, `left-end`.

### Precision

Use `precision` to choose the smallest unit people edit and submit. The field and the panel only show the matching segments and columns. At hour precision on a 24-hour clock, the panel adds a disabled minute column fixed at `00`, so it reads as a time.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker name="opening-hour" precision="hour" value="09:00">
  <label slot="label">Opening hour</label>
</bq-time-picker>

<bq-time-picker name="start-time" value="09:30">
  <label slot="label">Start time</label>
</bq-time-picker>

<bq-time-picker name="lap-time" precision="second" value="09:30:15">
  <label slot="label">Lap time</label>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<>
  <BqTimePicker name="opening-hour" precision="hour" value="09:00">
    <label slot="label">Opening hour</label>
  </BqTimePicker>

  <BqTimePicker name="start-time" value="09:30">
    <label slot="label">Start time</label>
  </BqTimePicker>

  <BqTimePicker name="lap-time" precision="second" value="09:30:15">
    <label slot="label">Lap time</label>
  </BqTimePicker>
</>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker name="opening-hour" precision="hour" value="09:00">
      <label slot="label">Opening hour</label>
    </bq-time-picker>

    <bq-time-picker name="start-time" value="09:30">
      <label slot="label">Start time</label>
    </bq-time-picker>

    <bq-time-picker name="lap-time" precision="second" value="09:30:15">
      <label slot="label">Lap time</label>
    </bq-time-picker>
  `
})
export class TimePickerPrecisionComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker name="opening-hour" precision="hour" value="09:00">
    <label slot="label">Opening hour</label>
  </BqTimePicker>

  <BqTimePicker name="start-time" value="09:30">
    <label slot="label">Start time</label>
  </BqTimePicker>

  <BqTimePicker name="lap-time" precision="second" value="09:30:15">
    <label slot="label">Lap time</label>
  </BqTimePicker>
</template>
```

### 12-hour and 24-hour clock

The clock is 24-hour by default, whatever the `locale`. Set `hour-format="12"` for a 12-hour clock with an AM/PM segment. The submitted `value` stays in 24-hour format.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker hour-format="12" name="alarm-12h" value="14:30">
  <label slot="label">12-hour clock</label>
</bq-time-picker>

<bq-time-picker name="alarm-24h" value="14:30">
  <label slot="label">24-hour clock</label>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<>
  <BqTimePicker hourFormat="12" name="alarm-12h" value="14:30">
    <label slot="label">12-hour clock</label>
  </BqTimePicker>

  <BqTimePicker name="alarm-24h" value="14:30">
    <label slot="label">24-hour clock</label>
  </BqTimePicker>
</>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker hour-format="12" name="alarm-12h" value="14:30">
      <label slot="label">12-hour clock</label>
    </bq-time-picker>

    <bq-time-picker name="alarm-24h" value="14:30">
      <label slot="label">24-hour clock</label>
    </bq-time-picker>
  `
})
export class TimePickerHourFormatComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker hourFormat="12" name="alarm-12h" value="14:30">
    <label slot="label">12-hour clock</label>
  </BqTimePicker>

  <BqTimePicker name="alarm-24h" value="14:30">
    <label slot="label">24-hour clock</label>
  </BqTimePicker>
</template>
```

### Locale

Use `locale` to set the segment order, separators, AM/PM labels, and column headers. Some locales place the period before the hour, and the panel columns follow the same order. The examples set `hour-format="12"` where the locale usually shows a 12-hour clock.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker hour-format="12" locale="en-US" name="time-us" value="14:30">
  <label slot="label">English (US)</label>
</bq-time-picker>

<bq-time-picker locale="de-DE" name="time-de" value="14:30">
  <label slot="label">Deutsch</label>
</bq-time-picker>

<bq-time-picker hour-format="12" locale="ko-KR" name="time-ko" value="14:30">
  <label slot="label">한국어</label>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<>
  <BqTimePicker hourFormat="12" locale="en-US" name="time-us" value="14:30">
    <label slot="label">English (US)</label>
  </BqTimePicker>

  <BqTimePicker locale="de-DE" name="time-de" value="14:30">
    <label slot="label">Deutsch</label>
  </BqTimePicker>

  <BqTimePicker hourFormat="12" locale="ko-KR" name="time-ko" value="14:30">
    <label slot="label">한국어</label>
  </BqTimePicker>
</>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker hour-format="12" locale="en-US" name="time-us" value="14:30">
      <label slot="label">English (US)</label>
    </bq-time-picker>

    <bq-time-picker locale="de-DE" name="time-de" value="14:30">
      <label slot="label">Deutsch</label>
    </bq-time-picker>

    <bq-time-picker hour-format="12" locale="ko-KR" name="time-ko" value="14:30">
      <label slot="label">한국어</label>
    </bq-time-picker>
  `
})
export class TimePickerLocaleComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker hourFormat="12" locale="en-US" name="time-us" value="14:30">
    <label slot="label">English (US)</label>
  </BqTimePicker>

  <BqTimePicker locale="de-DE" name="time-de" value="14:30">
    <label slot="label">Deutsch</label>
  </BqTimePicker>

  <BqTimePicker hourFormat="12" locale="ko-KR" name="time-ko" value="14:30">
    <label slot="label">한국어</label>
  </BqTimePicker>
</template>
```

### Labels

Use `labels` to change the column headers, AM/PM labels, button text, and accessible names, for example to translate them. Pass an object, or a JSON string through the HTML attribute. Every key is optional: `hour`, `minute`, `second`, `am`, and `pm` default to the `locale` names, `period` defaults to the AM and PM labels joined by a slash, and the rest default to English.

| Key | Used for | Default |
| - | - | - |
| `hour` | Hour column header and hour segment name | Locale name, e.g. `hour` |
| `minute` | Minute column header and minute segment name | Locale name, e.g. `minute` |
| `second` | Second column header and second segment name | Locale name, e.g. `second` |
| `period` | AM/PM column header and AM/PM segment name | `am` and `pm` joined by a slash |
| `am` | Morning period in the field and the panel | Locale label, e.g. `am` |
| `pm` | Afternoon period in the field and the panel | Locale label, e.g. `pm` |
| `now` | "Now" button text | `"Now"` |
| `clear` | Clear button name | `"Clear"` |
| `confirm` | Confirm button text | `"OK"` |
| `openPanel` | Clock trigger button name | `"Open time picker"` |
| `panelLabel` | Panel name | `"Choose time"` |

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker
  hour-format="12"
  labels='{"hour":"Heure","minute":"Minute","am":"matin","pm":"soir","period":"Moment","now":"Maintenant","clear":"Effacer","confirm":"Valider","openPanel":"Ouvrir le sélecteur d’heure","panelLabel":"Choisir l’heure"}'
  locale="fr-FR"
  name="rdv"
  value="14:30"
>
  <label slot="label">Heure du rendez-vous</label>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

const labels = {
  hour: "Heure",
  minute: "Minute",
  am: "matin",
  pm: "soir",
  period: "Moment",
  now: "Maintenant",
  clear: "Effacer",
  confirm: "Valider",
  openPanel: "Ouvrir le sélecteur d’heure",
  panelLabel: "Choisir l’heure",
};

<BqTimePicker hourFormat="12" labels={labels} locale="fr-FR" name="rdv" value="14:30">
  <label slot="label">Heure du rendez-vous</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";
import type { TTimePickerLabels } from "@beeq/core";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker hour-format="12" [labels]="labels" locale="fr-FR" name="rdv" value="14:30">
      <label slot="label">Heure du rendez-vous</label>
    </bq-time-picker>
  `
})
export class TimePickerLabelsComponent {
  labels: TTimePickerLabels = {
    hour: "Heure",
    minute: "Minute",
    am: "matin",
    pm: "soir",
    period: "Moment",
    now: "Maintenant",
    clear: "Effacer",
    confirm: "Valider",
    openPanel: "Ouvrir le sélecteur d’heure",
    panelLabel: "Choisir l’heure",
  };
}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";

const labels = {
  hour: "Heure",
  minute: "Minute",
  am: "matin",
  pm: "soir",
  period: "Moment",
  now: "Maintenant",
  clear: "Effacer",
  confirm: "Valider",
  openPanel: "Ouvrir le sélecteur d’heure",
  panelLabel: "Choisir l’heure",
};
</script>

<template>
  <BqTimePicker hourFormat="12" :labels="labels" locale="fr-FR" name="rdv" value="14:30">
    <label slot="label">Heure du rendez-vous</label>
  </BqTimePicker>
</template>
```

### Minimum and maximum time

Use `min` and `max` to set the earliest and latest selectable times. Options outside the range are disabled in the panel, and the "Now" button is disabled when the current time is out of range. If `min` is later than `max`, both are ignored.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker max="17:30" min="09:00" name="office-hours" value="10:00">
  <label slot="label">Office hours</label>
</bq-time-picker>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<BqTimePicker max="17:30" min="09:00" name="office-hours" value="10:00">
  <label slot="label">Office hours</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker max="17:30" min="09:00" name="office-hours" value="10:00">
      <label slot="label">Office hours</label>
    </bq-time-picker>
  `
})
export class TimePickerMinMaxComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker max="17:30" min="09:00" name="office-hours" value="10:00">
    <label slot="label">Office hours</label>
  </BqTimePicker>
</template>
```

### Steps

Use `hour-step`, `minute-step`, and `second-step` to show options at fixed intervals. Typed values that fall between steps are kept but flagged as invalid, and "Now" rounds down to the nearest step.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker minute-step="15" name="slot-time" value="10:15">
  <label slot="label">Appointment slot</label>
</bq-time-picker>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<BqTimePicker minuteStep={15} name="slot-time" value="10:15">
  <label slot="label">Appointment slot</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker [minuteStep]="15" name="slot-time" value="10:15">
      <label slot="label">Appointment slot</label>
    </bq-time-picker>
  `
})
export class TimePickerStepsComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker :minuteStep="15" name="slot-time" value="10:15">
    <label slot="label">Appointment slot</label>
  </BqTimePicker>
</template>
```

### Require confirmation

With `require-confirm`, panel picks, including "Now", stay a draft until people press OK or `Enter`. `Escape`, an outside click, or moving focus away discards the draft. Values typed in the field are always committed right away.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker name="departure-time" require-confirm value="08:45">
  <label slot="label">Departure time</label>
</bq-time-picker>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<BqTimePicker name="departure-time" requireConfirm value="08:45">
  <label slot="label">Departure time</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker name="departure-time" require-confirm value="08:45">
      <label slot="label">Departure time</label>
    </bq-time-picker>
  `
})
export class TimePickerConfirmComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker name="departure-time" requireConfirm value="08:45">
    <label slot="label">Departure time</label>
  </BqTimePicker>
</template>
```

### Without the Now button

Set `disable-now` to hide the "Now" button when the current time isn't a meaningful choice, such as for reminders set for later in the day. The OK button is always shown.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker disable-now name="reminder-time" value="18:00">
  <label slot="label">Reminder time</label>
</bq-time-picker>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<BqTimePicker disableNow name="reminder-time" value="18:00">
  <label slot="label">Reminder time</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker disable-now name="reminder-time" value="18:00">
      <label slot="label">Reminder time</label>
    </bq-time-picker>
  `
})
export class TimePickerWithoutNowComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker disableNow name="reminder-time" value="18:00">
    <label slot="label">Reminder time</label>
  </BqTimePicker>
</template>
```

### Prefix and suffix

Use the `prefix` slot to add context before the value. The `suffix` slot replaces the clock icon inside the trigger button, so set `labels.openPanel` to keep the button name accurate.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker name="wake-up" value="07:00">
  <label slot="label">Wake-up alarm</label>
  <bq-icon name="alarm" slot="prefix"></bq-icon>
</bq-time-picker>

<bq-time-picker labels='{"openPanel":"Choose end time"}' name="timer-end" value="07:20">
  <label slot="label">Timer ends</label>
  <bq-icon name="clock-countdown" slot="suffix"></bq-icon>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqIcon, BqTimePicker } from "@beeq/react";

<>
  <BqTimePicker name="wake-up" value="07:00">
    <label slot="label">Wake-up alarm</label>
    <BqIcon name="alarm" slot="prefix" />
  </BqTimePicker>

  <BqTimePicker labels={{ openPanel: "Choose end time" }} name="timer-end" value="07:20">
    <label slot="label">Timer ends</label>
    <BqIcon name="clock-countdown" slot="suffix" />
  </BqTimePicker>
</>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqIcon, BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqIcon, BqTimePicker],
  template: `
    <bq-time-picker name="wake-up" value="07:00">
      <label slot="label">Wake-up alarm</label>
      <bq-icon name="alarm" slot="prefix"></bq-icon>
    </bq-time-picker>

    <bq-time-picker [labels]="{ openPanel: 'Choose end time' }" name="timer-end" value="07:20">
      <label slot="label">Timer ends</label>
      <bq-icon name="clock-countdown" slot="suffix"></bq-icon>
    </bq-time-picker>
  `
})
export class TimePickerPrefixSuffixComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqIcon, BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker name="wake-up" value="07:00">
    <label slot="label">Wake-up alarm</label>
    <BqIcon name="alarm" slot="prefix" />
  </BqTimePicker>

  <BqTimePicker :labels="{ openPanel: 'Choose end time' }" name="timer-end" value="07:20">
    <label slot="label">Timer ends</label>
    <BqIcon name="clock-countdown" slot="suffix" />
  </BqTimePicker>
</template>
```

### Without the clear button

Set `disable-clear` to hide the clear button when the field should always hold a value.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker disable-clear name="check-in" value="15:00">
  <label slot="label">Check-in time</label>
</bq-time-picker>
```

```jsx React icon="react" theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<BqTimePicker disableClear name="check-in" value="15:00">
  <label slot="label">Check-in time</label>
</BqTimePicker>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker disable-clear name="check-in" value="15:00">
      <label slot="label">Check-in time</label>
    </bq-time-picker>
  `
})
export class TimePickerDisableClearComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker disableClear name="check-in" value="15:00">
    <label slot="label">Check-in time</label>
  </BqTimePicker>
</template>
```

### Disabled and read-only

Use `disabled` when the time isn't available for editing and shouldn't be submitted. Use `readonly` when people should see and submit the value but not change it: the segments stay focusable, and the panel doesn't open.

```html HTML icon="html5" theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker disabled name="disabled-time" value="12:00">
  <label slot="label">Disabled</label>
</bq-time-picker>

<bq-time-picker name="readonly-time" readonly value="12:00">
  <label slot="label">Read-only</label>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<>
  <BqTimePicker disabled name="disabled-time" value="12:00">
    <label slot="label">Disabled</label>
  </BqTimePicker>

  <BqTimePicker name="readonly-time" readonly value="12:00">
    <label slot="label">Read-only</label>
  </BqTimePicker>
</>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker disabled name="disabled-time" value="12:00">
      <label slot="label">Disabled</label>
    </bq-time-picker>

    <bq-time-picker name="readonly-time" readonly value="12:00">
      <label slot="label">Read-only</label>
    </bq-time-picker>
  `
})
export class TimePickerStatesComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker disabled name="disabled-time" value="12:00">
    <label slot="label">Disabled</label>
  </BqTimePicker>

  <BqTimePicker name="readonly-time" readonly value="12:00">
    <label slot="label">Read-only</label>
  </BqTimePicker>
</template>
```

### Validation states

Use `validation-status` when the field should show immediate visual feedback after validation.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<bq-time-picker name="time-error" validation-status="error" value="07:15">
  <label slot="label">Error</label>
</bq-time-picker>

<bq-time-picker name="time-warning" validation-status="warning" value="07:15">
  <label slot="label">Warning</label>
</bq-time-picker>

<bq-time-picker name="time-success" validation-status="success" value="07:15">
  <label slot="label">Success</label>
</bq-time-picker>
```

```jsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { BqTimePicker } from "@beeq/react";

<>
  <BqTimePicker name="time-error" validationStatus="error" value="07:15">
    <label slot="label">Error</label>
  </BqTimePicker>

  <BqTimePicker name="time-warning" validationStatus="warning" value="07:15">
    <label slot="label">Warning</label>
  </BqTimePicker>

  <BqTimePicker name="time-success" validationStatus="success" value="07:15">
    <label slot="label">Success</label>
  </BqTimePicker>
</>
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqTimePicker],
  template: `
    <bq-time-picker name="time-error" validation-status="error" value="07:15">
      <label slot="label">Error</label>
    </bq-time-picker>

    <bq-time-picker name="time-warning" validation-status="warning" value="07:15">
      <label slot="label">Warning</label>
    </bq-time-picker>

    <bq-time-picker name="time-success" validation-status="success" value="07:15">
      <label slot="label">Success</label>
    </bq-time-picker>
  `
})
export class TimePickerValidationComponent {}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { BqTimePicker } from "@beeq/vue";
</script>

<template>
  <BqTimePicker name="time-error" validationStatus="error" value="07:15">
    <label slot="label">Error</label>
  </BqTimePicker>

  <BqTimePicker name="time-warning" validationStatus="warning" value="07:15">
    <label slot="label">Warning</label>
  </BqTimePicker>

  <BqTimePicker name="time-success" validationStatus="success" value="07:15">
    <label slot="label">Success</label>
  </BqTimePicker>
</template>
```

### Form integration

`bq-time-picker` submits its current value with the form, in 24-hour format. Use `required` and `form-validation-message` when the time is mandatory; the custom message also applies to incomplete, out-of-range, and off-step values.

> [!WARNING]
>
> A partly filled field becomes invalid when focus leaves it, even when the picker is optional. The draft stays visible and the last committed `value` is preserved, but native form validation blocks submission until the user completes the time, picks one from the panel, or clears the field.

When focus leaves the field, complete times outside `min` or `max` are clamped to the nearest bound. A disabled time picker is excluded from form data; a read-only one is still submitted.

```html HTML icon="html5" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<form id="time-form">
  <bq-time-picker
    form-validation-message="Choose a start time"
    name="startTime"
    required
  >
    <label slot="label">Start time</label>
  </bq-time-picker>
  <bq-button appearance="secondary" type="reset">Reset</bq-button>
  <bq-button type="submit">Submit</bq-button>
  <pre id="time-output">{}</pre>
</form>

<script>
  const form = document.querySelector('#time-form');
  const output = document.querySelector('#time-output');

  form.addEventListener('submit', (event) => {
    event.preventDefault();
    output.textContent = JSON.stringify(Object.fromEntries(new FormData(form).entries()), null, 2);
  });

  form.addEventListener('reset', () => {
    requestAnimationFrame(() => {
      output.textContent = '{}';
    });
  });
</script>
```

```tsx React icon="react" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { useState } from "react";
import { BqButton, BqTimePicker } from "@beeq/react";

export default function TimePickerForm() {
  const [data, setData] = useState("{}");

  return (
    <form
      onReset={() => setData("{}")}
      onSubmit={(event) => {
        event.preventDefault();
        setData(JSON.stringify(Object.fromEntries(new FormData(event.currentTarget).entries()), null, 2));
      }}
    >
      <BqTimePicker
        formValidationMessage="Choose a start time"
        name="startTime"
        required
      >
        <label slot="label">Start time</label>
      </BqTimePicker>
      <BqButton appearance="secondary" type="reset">Reset</BqButton>
      <BqButton type="submit">Submit</BqButton>
      <pre>{data}</pre>
    </form>
  );
}
```

```ts Angular icon="angular" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
import { Component } from "@angular/core";
import { BqButton, BqTimePicker } from "@beeq/angular/standalone";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [BqButton, BqTimePicker],
  template: `
    <form (reset)="data = '{}'" (submit)="handleSubmit($event)">
      <bq-time-picker
        form-validation-message="Choose a start time"
        name="startTime"
        required
      >
        <label slot="label">Start time</label>
      </bq-time-picker>
      <bq-button appearance="secondary" type="reset">Reset</bq-button>
      <bq-button type="submit">Submit</bq-button>
      <pre>{{ data }}</pre>
    </form>
  `,
})
export class TimePickerFormComponent {
  data = "{}";

  handleSubmit(event: SubmitEvent): void {
    event.preventDefault();
    this.data = JSON.stringify(Object.fromEntries(new FormData(event.target as HTMLFormElement).entries()), null, 2);
  }
}
```

```vue Vue icon="vuejs" expandable theme={"theme":{"light":"one-light","dark":"night-owl"}}
<script setup lang="ts">
import { ref } from "vue";
import { BqButton, BqTimePicker } from "@beeq/vue";

const data = ref("{}");

function handleSubmit(event: Event) {
  data.value = JSON.stringify(Object.fromEntries(new FormData(event.target as HTMLFormElement).entries()), null, 2);
}
</script>

<template>
  <form @reset="data = '{}'" @submit.prevent="handleSubmit">
    <BqTimePicker
      formValidationMessage="Choose a start time"
      name="startTime"
      required
    >
      <label slot="label">Start time</label>
    </BqTimePicker>
    <BqButton appearance="secondary" type="reset">Reset</BqButton>
    <BqButton type="submit">Submit</BqButton>
    <pre>{{ data }}</pre>
  </form>
</template>
```

## Best practices

> [card]
>
> Do
>
> Write labels that name the moment, such as "Departure time" or "Meeting starts", so people know which time they are setting.

> [card]
>
> Don't
>
> Do not rely on the format hint alone to explain the field. Always provide a visible label.

> [card]
>
> Do
>
> Match `precision` to the task. Most scheduling needs hours and minutes only; add seconds only for durations or precise logs.

> [card]
>
> Don't
>
> Do not ask for seconds when nobody will use them. Every extra segment adds typing and scanning effort.

> [card]
>
> Do
>
> Set `min`, `max`, and step values when business rules are known, so unavailable times are disabled before people pick them.

> [card]
>
> Don't
>
> Do not mix clocks across a product. Pick the `hour-format` your audience expects and use it for every time picker.

> [card]
>
> Do
>
> Use `require-confirm` when a picked time triggers an expensive or irreversible action, such as rescheduling a booking.

> [card]
>
> Don't
>
> Do not use a time picker for durations longer than a day or for picking a date and time together.

## Accessibility

* `bq-time-picker` is form-associated and delegates focus, so it participates in native forms and moves focus into its segmented field when the component receives focus.
* The segmented field is a labelled `group` described by the expected format and, when a constraint fails, by the validation message. Each hour, minute, second, and AM/PM control is a `spinbutton` with its own label, limits, value text, and roving tabindex, and exposes `aria-required` when the field is required.
* Each segment sets `aria-invalid="true"` for `validationStatus="error"` and native constraint failures, such as a missing required value or an incomplete, out-of-range, or off-step time. `aria-readonly` and `aria-disabled` reflect the `readonly` and `disabled` states.
* The panel carries `role="dialog"` and is named by `labels.panelLabel` ("Choose time" by default). The panel isn't modal.
* Each column is a `listbox` labelled by its visible header (`aria-labelledby`), so the spoken name matches what people see. Options expose `aria-selected`, and options outside `min`, `max`, or the steps expose `aria-disabled="true"`.
* The component announces the selected time, or that no time is selected, when focus enters the field.
* The panel opens from the keyboard through the segmented field or the clock icon, and moves focus into it; see [Keyboard interaction](#keyboard-interaction) for the keys. Clicking the field opens the panel while keeping focus on the segment.
* In `readonly` mode the segments stay focusable so screen reader users can read the value, but they can't be edited and the panel doesn't open.
* Provide a visible label through the `label` slot, so the field has a programmatic name.
* Translate `labels` when translating the interface: segment names, button names and the panel name come from it.
* Don't rely on color alone to communicate validation states. Pair `validationStatus` with visible error text so screen reader users receive the same feedback as sighted users.

### Keyboard interaction

| Key | Context | Action |
| - | - | - |
| `Tab` | Segmented field | Moves focus to the active segment (one tab stop for all segments) |
| `ArrowLeft` / `ArrowRight` | Time segment | Moves focus to the previous or next segment |
| `Home` / `End` | Time segment | Moves focus to the first or last segment |
| `ArrowUp` / `ArrowDown` | Time segment | Steps the segment value, wrapping around and skipping disabled options |
| `0`–`9` | Hour, minute or second segment | Types digits into the segment and advances automatically when the segment is full |
| `A` / `P` | AM/PM segment (`hour-format="12"`) | Sets the day period and moves to the next segment |
| `Backspace` / `Delete` | Time segment | Clears the segment; `Backspace` then moves focus to the previous segment |
| `Alt+ArrowDown` | Time segment | Opens the panel and moves focus into it |
| `Enter` | Time segment, panel open | Confirms any pending draft and closes the panel |
| `Enter` / `Space` | Clock icon focused | Opens the panel and moves focus to the first column |
| `ArrowUp` / `ArrowDown` | Panel column | Moves to the previous or next option and selects it |
| `Home` / `End` | Panel column | Moves to the first or last option |
| `PageUp` / `PageDown` | Panel column | Moves several options back or forward |
| `ArrowLeft` / `ArrowRight` | Panel column | Moves focus to the adjacent column (mirrored in right-to-left layouts) |
| `Space` | Panel column | Picks the focused option |
| `Enter` | Panel column | Picks the focused option, confirms, and closes the panel |
| `Escape` | Panel column | Closes the panel and returns focus to the field; with `require-confirm`, the draft is discarded |
| Edit keys (digits, `A`/`P`, `Backspace`, `Delete`, `ArrowUp`, `ArrowDown`) | `readonly` | Ignored; segments stay focusable and `ArrowLeft`, `ArrowRight`, `Home` and `End` still move focus |
| Any key | Time picker disabled | Segment key handling is ignored |

### Rules

| Rule | Strength | Verified by |
| - | - | - |
| Provide a visible label through the `label` slot | MUST | manual: inspect the visible field label |
| Set `required` when a time is mandatory so form submission is blocked until a value is set | MUST | automated: [`bq-time-picker.e2e.tsx`](https://github.com/Endava/BEEQ/blob/main/packages/beeq/src/components/time-picker/__tests__/bq-time-picker.e2e.tsx) checks `form.checkValidity()` |
| Set `form-validation-message` to provide a specific message for incomplete, out-of-range, and off-step values | SHOULD | manual: inspect the native message for incomplete, range and step errors |
| Translate `labels` when translating the interface | MUST | manual: review translated field and control labels together |
| Pair `validationStatus` with visible error text | MUST | manual: inspect error text beside each visual error state |
| Use more than color to communicate validation states | MUST NOT | manual: read validation state without relying on color |
| Set `min`, `max`, and step values when business rules are known | SHOULD | manual: review business rules against time bounds and step |
| Use one `hour-format` across a product | MUST | manual: compare hour formats across the product |
| Rely on the format hint alone to explain the field | MUST NOT | manual: read field instructions with the format hint hidden |

## API reference

### Properties

| Property | Attribute | Description | Type | Default |
| - | - | - | - | - |
| `autofocus` | `autofocus` | If `true`, the Time picker field will be focused on component render | `boolean` | `false` |
| `disableClear` | `disable-clear` | If `true`, the clear button won't be displayed | `boolean` | `false` |
| `disableNow` | `disable-now` | If `true`, the panel "Now" button won't be displayed | `boolean` | `false` |
| `disabled` | `disabled` | Indicates whether the Time picker is disabled or not | `boolean` | `false` |
| `distance` | `distance` | Distance (gutter) between the Time picker panel and the field | `number` | `8` |
| `form` | `form` | The ID of the form the field belongs to | `string` | `undefined` |
| `formValidationMessage` | `form-validation-message` | Native form validation message | `string` | `undefined` |
| `hourFormat` | `hour-format` | The clock used by the field and the panel: 24-hour (`"24"`) or 12-hour with an AM/PM period (`"12"`). It doesn't depend on the `locale` | `"12" \| "24"` | `"24"` |
| `hourStep` | `hour-step` | Step between selectable hours | `number` | `1` |
| `labels` | `labels` | Text of the column headers, AM/PM labels, buttons and accessible names, as an object or a JSON string. Missing keys fall back to the `locale` names or English text. See [Labels](#labels) | `TTimePickerLabels \| string` | `undefined` |
| `locale` | `locale` | Locale used for the field layout, separators, column headers and day period labels. The clock is set by `hour-format` | `Locale \| readonly (string \| Locale)[] \| string` | `"en-GB"` |
| `max` | `max` | Latest selectable time, in 24-hour format (`HH:mm` or `HH:mm:ss`). Ignored, together with `min`, when it is earlier than `min` | `string` | `undefined` |
| `min` | `min` | Earliest selectable time, in 24-hour format (`HH:mm` or `HH:mm:ss`). Ignored, together with `max`, when it is later than `max` | `string` | `undefined` |
| `minuteStep` | `minute-step` | Step between selectable minutes | `number` | `1` |
| `name` | `name` | Name submitted with the form data (required) | `string` | `undefined` |
| `open` | `open` | If `true`, the panel is visible | `boolean` | `false` |
| `panelHeight` | `panel-height` | Overrides the height of the Time picker panel | `string` | `"auto"` |
| `placement` | `placement` | Position of the Time picker panel | `"bottom" \| "bottom-end" \| "bottom-start" \| "left" \| "left-end" \| "left-start" \| "right" \| "right-end" \| "right-start" \| "top" \| "top-end" \| "top-start"` | `"bottom-end"` |
| `precision` | `precision` | Smallest unit edited and submitted: `hour` → `HH:00`, `minute` → `HH:mm`, `second` → `HH:mm:ss` | `"hour" \| "minute" \| "second"` | `"minute"` |
| `readonly` | `readonly` | If `true`, the value can be read and submitted but not changed | `boolean` | `false` |
| `requireConfirm` | `require-confirm` | If `true`, picks made in the panel (including "Now") are a draft until confirmed with the OK button or Enter. The field keeps showing the committed value until then. Escape or an outside click discards the draft | `boolean` | `false` |
| `required` | `required` | Whether a value must be entered before submitting the form | `boolean` | `false` |
| `secondStep` | `second-step` | Step between selectable seconds | `number` | `1` |
| `skidding` | `skidding` | Skidding between the panel and the field | `number` | `0` |
| `strategy` | `strategy` | Positioning strategy for the panel | `"absolute" \| "fixed"` | `"fixed"` |
| `validationStatus` | `validation-status` | Validation state applied to the field | `"error" \| "none" \| "success" \| "warning"` | `"none"` |
| `value` | `value` | The selected time, in 24-hour format: `HH:mm` (`HH:00` at hour precision) or `HH:mm:ss` at second precision | `string` | `undefined` |

### Invalid combinations

| Combination | Strength | Result |
| - | - | - |
| `min` later than `max` | MUST NOT | Both `min` and `max` are ignored |
| `hour-step` above `23`, or `minute-step` or `second-step` above `59` | MUST NOT | The step is capped at `23` or `59` |
| `hour-step`, `minute-step` or `second-step` below `1` or not a number | MUST NOT | The step is treated as `1` |
| `open` set with `disabled` or `readonly` | SHOULD NOT | The panel does not open |
| An unsupported value for `precision`, `hour-format`, `strategy`, `placement`, or `validation-status` | MUST NOT | A development warning is logged and the default value is used |

### Events

| Event | Description | Type |
| - | - | - |
| `bqBlur` | Fired when focus leaves the Time picker. Moving focus between the field and the panel does not fire it | `CustomEvent<HTMLBqTimePickerElement>` |
| `bqChange` | Fired when the value is committed or cleared | `CustomEvent<{ value: string; el: HTMLElement }>` |
| `bqClear` | Fired when the value is cleared | `CustomEvent<HTMLBqTimePickerElement>` |
| `bqFocus` | Fired when focus enters the Time picker. Moving focus between the field and the panel does not fire it | `CustomEvent<HTMLBqTimePickerElement>` |

> [!NOTE]
>
> * In React, prefix events with `on`: `onBqBlur`, `onBqChange`, `onBqClear`, `onBqFocus`.
> * In Angular, use the event binding syntax: `(bqBlur)`, `(bqChange)`, `(bqClear)`, `(bqFocus)`.
> * In Vue, use the `@` shorthand: `@bqBlur`, `@bqChange`, `@bqClear`, `@bqFocus`.

### Methods

| Method | Description | Signature |
| - | - | - |
| `clear()` | Clears the value and any pending validation state, then emits `bqClear`. Does nothing when the component is disabled or read-only | `clear() => Promise<void>` |

### Slots

| Slot | Description |
| - | - |
| `label` | Label displayed above the field |
| `prefix` | Optional content rendered before the value |
| `suffix` | Replaces the icon inside the clock trigger button; defaults to a clock icon. Use `labels.openPanel` to name the button |
| `clear-icon` | Replaces the default clear icon |

### Shadow parts

| Part | Description |
| - | - |
| `base` | Base wrapper for the component |
| `label` | Label slot container |
| `control` | Field control wrapper |
| `prefix` | Prefix slot container |
| `suffix` | Clock trigger button that hosts the suffix slot |
| `input` | Segmented time field group |
| `segment` | Editable hour, minute, second, or AM/PM segment |
| `segment-literal` | Locale-derived separator between time segments |
| `clear-btn` | Clear button |
| `time-trigger` | Clock icon trigger button |
| `button` | Any button rendered by the component |
| `panel` | Dropdown panel container |
| `container` | Panel content wrapper |
| `columns` | Wrapper of the panel columns |
| `column` | Scrollable list of options (hours, minutes, seconds, or AM/PM) |
| `column-header` | Header above a column; it stays in place while the column scrolls |
| `option` | Any option inside a column |
| `option-selected` | Selected option of a column |
| `footer` | Panel footer |
| `now-btn` | "Now" button |
| `confirm-btn` | Confirm (OK) button |

### CSS custom properties

**CSS variables**

| Variable | Description | Default |
| - | - | - |
| `--bq-time-picker--background-color` | Time picker background color | `var(--bq-ui--primary)` |
| `--bq-time-picker--border-color` | Time picker border color | `var(--bq-stroke--tertiary)` |
| `--bq-time-picker--border-color-disabled` | Time picker border color when disabled | `var(--bq-stroke--secondary)` |
| `--bq-time-picker--border-color-focus` | Time picker border color on focus | `var(--bq-stroke--brand)` |
| `--bq-time-picker--border-color-danger` | Time picker border color when the validation status is `error` | `var(--bq-stroke--danger)` |
| `--bq-time-picker--border-color-success` | Time picker border color when the validation status is `success` | `var(--bq-stroke--success)` |
| `--bq-time-picker--border-color-warning` | Time picker border color when the validation status is `warning` | `var(--bq-stroke--warning)` |
| `--bq-time-picker--border-radius` | Time picker border radius | `var(--bq-radius--s)` |
| `--bq-time-picker--border-style` | Time picker border style | `solid` |
| `--bq-time-picker--border-width` | Time picker border width | `1px` |
| `--bq-time-picker--column-gap` | Space between the panel columns | `var(--bq-spacing-xs2)` |
| `--bq-time-picker--column-header-text-color` | Text color of the column headers | `var(--bq-text--secondary)` |
| `--bq-time-picker--column-height` | Height of the scrollable panel columns | `15rem` |
| `--bq-time-picker--column-width` | Width of a panel column | `3.5rem` |
| `--bq-time-picker--divider-color` | Color of the lines between the panel columns and above the footer | `var(--bq-stroke--primary)` |
| `--bq-time-picker--gap` | Gap between field content and prefix/suffix | `var(--bq-spacing-xs)` |
| `--bq-time-picker--icon-size` | Prefix/suffix/clear icon size | `1.5rem` |
| `--bq-time-picker--label-margin-bottom` | Space below the label | `var(--bq-spacing-xs)` |
| `--bq-time-picker--label-text-color` | Label text color | `var(--bq-text--primary)` |
| `--bq-time-picker--label-text-size` | Label text size | `0.875rem` |
| `--bq-time-picker--option-background-hover` | Hover background of a column option | `var(--bq-ui--secondary)` |
| `--bq-time-picker--option-background-selected` | Background of the selected column option | `var(--bq-ui--brand)` |
| `--bq-time-picker--option-height` | Height of a column option | `2.5rem` |
| `--bq-time-picker--option-width` | Width of a column option | `3rem` |
| `--bq-time-picker--option-radius` | Border radius of a column option | `var(--bq-radius--xs)` |
| `--bq-time-picker--option-text-selected` | Text color of the selected column option | `var(--bq-text--on-brand, var(--bq-text--alt))` |
| `--bq-time-picker--padding-end` | Field padding end | `var(--bq-spacing-m)` |
| `--bq-time-picker--padding-start` | Field padding start | `var(--bq-spacing-m)` |
| `--bq-time-picker--paddingY` | Field vertical padding | `var(--bq-spacing-s)` |
| `--bq-time-picker--text-color` | Field text color | `var(--bq-text--primary)` |
| `--bq-time-picker--text-placeholder-color` | Placeholder text color | `var(--bq-text--secondary)` |
| `--bq-time-picker--text-size` | Field text size | `1rem` |

> [!TIP]
>
> Learn more about [styling with shadow parts](https://www.beeq.design/guides/styles.md#component-shadow-dom-parts) and [CSS custom properties](https://www.beeq.design/guides/styles.md#global-css-custom-properties).

## Resources

> [card] [Interactive playground](https://storybook.beeq.design/?path=/story/components-time-picker--default)
>
> Explore time picker variants, constraints, locales, and panel behavior in Storybook.

> [card] [Source code](https://github.com/Endava/BEEQ/tree/main/packages/beeq/src/components/time-picker)
>
> Browse the component implementation, styles, and tests on GitHub.


## Related topics

- [Date Picker](https://www.beeq.design/components/date-picker.md)
- [Changelog](https://www.beeq.design/releases/changelog.md)
- [Dropdown](https://www.beeq.design/components/dropdown.md)
- [Alert](https://www.beeq.design/components/alert.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.