Taiga UI 5 is out!

InputYear KIT

Examples API GitHub

[min]
minimum year
number
[max]
maximum year
number
ItemsHandlersApplied as a host directive
[disabledItemHandler]
a handler that gets an item and returns true if it is disabled. Must be a pure function!
TuiBooleanHandler
TextfieldOptionsApplied as a host directive
[tuiTextfieldCleaner]
shows a cross to reset a value
boolean
[tuiTextfieldSize]
size of the textfield.

Don't use label[tuiLabel] inside s - size textfield.
Use outside label or <input placeholder="..." /> instead.

TuiSizeS  |  TuiSizeL
[content]
a template for custom view of textfield value.

We strongly recommend to unset this property on focus – otherwise, it breaks UX on attempt to edit field by keyboard!

PolymorpheusContent
StateManually override interactive state
[state]
manual interactive state ( null for automatic)
TuiInteractiveState  |  null
[focused]
manual focused state ( null for automatic)
null  |  boolean
DropdownApplied as a host directive
[(open)]
manual control/monitor for the dropdown being visible
boolean
[tuiDropdownAlign]
align of dropdown to the side of the host
tuiDropdownAlign
[tuiDropdownDirection]
set the vertical direction of dropdown
TuiVerticalDirection  |  null
[tuiDropdownMinHeight]
minimum height to shrink to before flipping direction
number
[tuiDropdownMaxHeight]
maximum height of dropdown
number
[tuiDropdownOffset]
dropdown offset from the host
number
(tuiDropdownDirectionChange)
dropdown direction change
TuiVerticalDirection
ControlApplied as a host directive
[readOnly]
readonly state
boolean
[disabled]
disabled state (use formControl.disable()/.enable() for reactive forms)
boolean
[invalid]
manual invalid state
null  |  boolean