All components

INPUTS / COMPONENTS

Assistive text

Put useful guidance beside the decision.

Live component3 documented props

About assistive text

Connect instructions and errors with aria-describedby. Give a clear correction and avoid exposing an error before input is evaluated.

01

Anatomy

Shared parts, named consistently.

  1. 1
    Message

    Explains context, validation, or the next step. Associate it with its control.

  2. 2
    Field association

    Content or structure that supports the component’s purpose and reading order.

  3. 3
    Error state

    Explains context, validation, or the next step. Associate it with its control.

Try the default

A working example with the shared V1 visual language.

A stable namespace for your design tokens.

When to use

Connect instructions and errors with aria-describedby. Give a clear correction and avoid exposing an error before input is evaluated.

Read with the field when referenced by aria-describedby. Error changes can be announced by the form.

Related components

Source & adaptation

V1 semantic colors, DM Sans typography, compact controls, and responsive layouts. The API table describes this implementation; source design notes may use earlier API terminology.

components/library/inputs.tsx