Taiga UI 5 is out!

InputCard ADDON-COMMERCE

Examples API GitHub

[(ngModel)]
card number (also works with a reactive control)
string
(binChange)
BIN value (card first 6 symbols)
null  |  string
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
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
IconsApplied as a host directive
[iconStart]
icon on the inline start side
string
[iconEnd]
icon on the inline end side
string