Skip to content
Binary UIKit reference Stable

Input

Single-line field with internal or external labeling, hint, error, icons, and password reveal.

Use Input for one line of text. Compose an external Label with matching `for` and `id`, or provide at most one internal name through `label`, `aria-label`, or `aria-labelledby`.

Interactive example

Loading interactive example

API

Inherited prop contracts

  • Omit<HTMLInputAttributes, 'value' | 'size' | 'aria-label' | 'aria-labelledby'> Props from this native base are accepted except the listed members.
  • Partial<AccessibleName> Optional internal naming accepts at most one of: label, aria-label, or aria-labelledby. Omit all three when an external Label targets the input id.
MemberTypeKindRequiredDefault
aria-labelstringpropNoundefined
aria-labelledbystringpropNoundefined
errorstringpropNoundefined
hideLabelstringpropNo'Hide password'
hintstringpropNoundefined
labelstringpropNoundefined
leadingIconGlyphpropNoundefined
leadingContentSnippetsnippetNoundefined
revealTogglebooleanpropNotrue
showLabelstringpropNo'Show password'
trailingIconGlyphpropNoundefined
trailingContentSnippetsnippetNoundefined
valuestringbindingNo''

Examples

Source

Loading source