Input
A text input field with support for various input types and standard HTML input attributes.
npx @slipstream-ui/cli@latest add inputNative input types
States
We never share your email.
Enter a valid email address.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| type | HTML input type | 'text' | Any native input type: text, email, password, number, tel, url, search, date, time, file… |
| placeholder | string | undefined | Placeholder text (never a label substitute). |
| disabled | boolean | false | Disables the input. |
| readOnly | boolean | false | Renders the value read-only (still focusable). |
| required | boolean | false | Marks the input as required for form validation. |
| aria-invalid | boolean | false | Announces validation failure; pair with aria-describedby error text. |
| autoComplete | string | undefined | HTML autofill hint (e.g. "email", "new-password", "one-time-code"). |
Accessibility
- Full keyboard navigation support
- Screen reader announces input type and placeholder
- Disabled state is properly announced
- Visible focus indicator for keyboard users
- Supports HTML5 validation attributes (required, pattern, minLength…)
- Pair every input with a <Label>; use aria-describedby for hints and errors
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.