inputs
Input
Single-line text input with size presets and accessible error state with inline message.
Import
import { Input } from '@stella-ds/react'Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Size preset |
| error | boolean | string | false | Pass true for error styling, or a string to show an error message |
Preview
Email is required
Examples
With error
<Input placeholder="Enter email" />
<Input error="Email is required" value="" onChange={() => {}} />