Skip to content

Files

Latest commit

f65a666 · Jun 25, 2021

History

History

text-input

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 25, 2021
Jun 25, 2020
Jun 25, 2021

@dojo/widgets/text-input

Dojo's TextInput widget provides a basic text input widget with an optional label.

Features

  • Allows specification of input type (e.g. text, email, number, etc)
  • Correctly handles a11y attributes
  • Allows leading / trailing icons / text to be added

Accessibility Features

TextInput ensures that the proper attributes (ARIA or otherwise) are set along with classes when properties such as disabled, readOnly, etc. are used. It also provides an API for custom ARIA implementations of aria-describedby and aria-controls. It also sets aria-invalid when validation fails.