Form Field
A single-line input with label, hint and error.
Live preview · click to try it
Variants
6 named variants. Layer names match the names below.
TextForm Field / Text
EmailForm Field / Email
PasswordForm Field / Password
SearchForm Field / Search
Use the client’s short name.
With HintForm Field / With Hint
With IconForm Field / With Icon
States
Form Field / Empty
Form Field / Focus
Form Field / Filled
Enter a project name to continue.
Form Field / Error
Form Field / Disabled
Usage
Do
- Names, emails, short answers.
Don't
- Long answers; use Textarea.
Properties
| Property | Type or options | Default |
|---|---|---|
| Variant | Text · Email · Password · Search · With Hint · With Icon | Text |
| Label | String | Project name |
| Hint | String | Use the client’s short name. |
| Error | String | Enter a project name to continue. |
| Disabled | Boolean | Off |
Styles it uses
Surface/FieldLine/StrongInk/PrimaryInk/SecondaryInk/MutedState/ErrorState/Focus
Text: Label · Field · Field Hint · Error
Accessibility
- Keyboard reachable with a visible 3px State/Focus ring.
- Interactive parts use real buttons and links with accessible names.