Text Input

Low-level text input primitive that renders an input element and an accessible label.
Access to Fuegokit npm packages, source code repositories, and some content is limited to Appfire staff. Log in with Slack to continue.


import {TextInput} from '@fuegokit/react'


A visual label should be provided for the TextInput using the label prop.


Text fields consist of an input element and a label.

TextInput manages the relationship between the two elements using the for attribute on the <label> element and the aria-labelledby attribute on the <input> element.

If a visible label isn't specified, an aria-label must be provided for accessibility.

If the field is labeled by a separate element, an aria-labelledby prop must be provided using the id of the labeling element instead.


Text inputs consist of HTML <label> and <input> elements, leading and trailing visuals, and a trailing action.

Text input

Text input

See also