ComponentReactregistry:ui1 dependency
Input
input
Labeled text field that wires a real label to the input for you, with an optional hint, error and password reveal.
Notes from the author
Pass `label` and it renders a real label element tied to the input; otherwise supply your own aria-label. A placeholder is a hint, so keep the label for the field's name. Native input attributes are forwarded, so type, placeholder, and validation work as usual. `hint` adds supporting text below the field and `error` replaces it, marking the field aria-invalid and announcing through role=alert -- reach for `error` whenever a submit button greys out, so the reason is on screen rather than guessed at. On a `type="password"` field, passing BOTH `revealLabel` and `hideLabel` adds a show/hide toggle; it renders only when both are given, since an icon-only control with no accessible name is worse than no control.
4 other registries
Similar components
Other registries' take on input.
@whiskeyjack