Input
One line of text: a name, a place, an email. Pair it with a Label.
Preview
Default
With a label
Disabled
With an icon
Usage
tsx
import { Input, Label } from "zostel-ui";
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" placeholder="you@example.com" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | "text" | Any HTML input type: text, email, tel, number, search… |
placeholder | string | — | A hint, in the brand voice ("Where to?"). |
disabled | boolean | false | Greys it out. |
… | InputHTMLAttributes | — | Every other <input> attribute; the ref goes to the <input>. |
className | string | — | More classes, merged with the component’s own (tailwind-merge). |
typeType:
stringDefault:
"text"Any HTML input type: text, email, tel, number, search…
placeholderType:
stringDefault: —
A hint, in the brand voice ("Where to?").
disabledType:
booleanDefault:
falseGreys it out.
…Type:
InputHTMLAttributesDefault: —
Every other <input> attribute; the ref goes to the <input>.
classNameType:
stringDefault: —
More classes, merged with the component’s own (tailwind-merge).