- Add the registry
- Add input
Usage
Every input needs a label or an aria-label; a placeholder isn't enough. A
Field links a FieldLabel to it, along with a description and an error.
Examples
Types
File
Sizes
Set size="lg" for a taller input.
Invalid
Set invalid on its Field to mark the input as invalid. On its own, set aria-invalid.
Disabled
Read-only
Props
size replaces the native attribute of the same name.
The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.