PrimitiveTextfield LEGACY

Examples API Setup
-
Name and descriptionType Value
[disabled]
Disabled state
boolean
[editable]
Native input allows inputting
boolean
[filler] Deprecated
Pale text suggestion for input (e.g. HH:MM:SS for time). Use tuiTextfieldFiller instead
string
[tuiTextfieldIcon]
Icon content. If content is a string, it is used as stringified svg.

Requires you to import TuiTextfieldControllerModule

PolymorpheusContent
''
[readOnly]
Component is read only
boolean
[invalid]
Invalid state
boolean
[(value)]
Value
string
Can be expanded with TuiHint

Requires you to import TuiHint

Name and descriptionType Value
[tuiHintContent]
Content of a hint
PolymorpheusContent
''
[tuiHintDirection]
Hint direction
TuiHintDirection  |  TuiHintDirection[]
'bottom-left'
[tuiHintAppearance]
Hint mode
string
''
Can be expanded with TuiTextfieldController

Requires you to import TuiTextfieldControllerModule

Name and descriptionType Value
[tuiTextfieldCleaner]
Shows a cross to reset a value
boolean
[tuiTextfieldCustomContent]
Right content (e.g. avatar with maximum size 32x32px)
PolymorpheusContent
''
[tuiTextfieldLabelOutside]
Label is outside a component and made with Label

( labelOutside = false does not work together with size === 's' : for s-size inputs use only outside labels)

boolean
[tuiTextfieldSize]
Size
TuiSizeS  |  TuiSizeL
'l'
[tuiTextfieldIconLeft]
A left icon. It can be stringified svg.
string
''
[tuiTextfieldFiller]
Pale text suggestion for input (e.g. HH:MM:SS for time)
string
[tuiTextfieldPrefix]
Uneditable text before value
string
[tuiTextfieldPostfix]
Uneditable text after value
string
Inherited from TuiInteractive
Name and descriptionType Value
[focusable]
Element can be focused
boolean
[nativeId]
Native ID attribute for element. It helps users with Screen Readers to use a page
string
[pseudoHover]
Visual hovered state
null  |  boolean
[pseudoFocus]
Visual focused state
null  |  boolean
[pseudoActive]
Visual pressed state
null  |  boolean
(focusedChange)
Emits on focus and blur
boolean Emit!

CSS customization

Name and descriptionType Value
[style.text-align]
Custom align content by text-align
string
'left'