The Base UI (Angular) time picker stores an HH:mm string and opens an overlay clock. Use 12-hour or 24-hour display. Copy it in with the CLI; pair with Pro datepicker showTime when the same field needs a calendar and a time.
Install with npx base-ui-cli add time-picker.
Playground
<base-time-picker [(ngModel)]="time" hourCycle="24" [disabled]="false"> </base-time-picker>
Value: 09:30
Site-wide VPAT-style notes live on the accessibility report.
Run the following command to add this component to your project:
npx base-ui-cli add time-picker
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add time-picker
// Paths are relative to aliases.components (default: src/app/components)
import { TimePickerComponent } from './time-picker/time-picker.component';
@Component({
selector: 'app-your-component',
imports: [
TimePickerComponent
],
template: `...`
})
export class YourComponent {} API for time-picker — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-time-picker | class | string | '' | Additional host classes. |
base-time-picker | label | string | '' | Visible label above the field. |
base-time-picker | placeholder | unknown | 'Select time' | Placeholder when no time is selected. |
base-time-picker | hourCycle | TimePickerHourCycle | '24' | 12-hour or 24-hour clock. |
base-time-picker | minuteStep | number | 5 | Minute increment (1, 5, or 15). |
base-time-picker | inline | boolean | false | Inline panel instead of an overlay (used inside datepicker datetime mode). |
base-time-picker | disabled | boolean | false | Disables the field. Also set by Angular Forms via `setDisabledState`. |
base-time-picker | (timeChange) | string | — | Emits `HH:mm` when the time changes. |
Content