InputTime LEGACY

Examples API Setup
Source code
  1. Add an import:

        
    import {FormsModule, ReactiveFormsModule} from '@angular/forms';
    import {TuiInputTimeModule} from '@taiga-ui/legacy';
    // ...
    @Component({
    standalone: true,
    imports: [
    // ...
    FormsModule,
    ReactiveFormsModule,
    TuiInputTimeModule,
    ],
    providers: [
    {
    provide: TUI_INPUT_TIME_OPTIONS,
    useValue: {
    icon: '@tui.circle-check',
    mode: 'HH:MM:SS',
    itemSize: 's',
    },
    },
    ],
    })
    export class Example {
    testForm = new FormGroup({
    testValue: new FormControl(new TuiTime(12, 30)),
    });
    }
  2. Add to the template:

        
    <form [formGroup]="testForm">
    <tui-input-time formControlName="testValue">Placeholder</tui-input-time>
    </form>