The Ply 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 ply-ui-cli add time-picker.
Playground
<ply-time-picker [(ngModel)]="time" hourCycle="24" [disabled]="false"> </ply-time-picker>
Value: 09:30
<ply-time-picker [(ngModel)]="time"></ply-time-picker>
TypeScript
import { Component } from '@angular/core';
// Install: npx ply-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-time-picker-example',
imports: [
TimePickerComponent
],
template: `...`
})
export class TimePickerExampleComponent {}Install
npx ply-ui-cli add time-picker
<ply-time-picker hourCycle="12" [(ngModel)]="time"></ply-time-picker>
TypeScript
import { Component } from '@angular/core';
// Install: npx ply-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-time-picker-example',
imports: [
TimePickerComponent
],
template: `...`
})
export class TimePickerExampleComponent {}Install
npx ply-ui-cli add time-picker
Site-wide VPAT-style notes live on the accessibility report.
Run the following command to add this component to your project:
npx ply-ui-cli add time-picker
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-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 |
|---|---|---|---|---|
ply-time-picker | class | string | '' | Additional host classes. |
ply-time-picker | label | string | '' | Visible label above the field. |
ply-time-picker | placeholder | unknown | 'Select time' | Placeholder when no time is selected. |
ply-time-picker | hourCycle | TimePickerHourCycle | '24' | 12-hour or 24-hour clock. |
ply-time-picker | minuteStep | number | 5 | Minute increment (1, 5, or 15). |
ply-time-picker | inline | boolean | false | Inline panel instead of an overlay (used inside datepicker datetime mode). |
ply-time-picker | disabled | boolean | false | Disables the field. Also set by Angular Forms via `setDisabledState`. |
ply-time-picker | (timeChange) | string | — | Emits `HH:mm` when the time changes. |
Content