Zostel
Forms Input

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

type
Type: string
Default: "text"

Any HTML input type: text, email, tel, number, search…

placeholder
Type: string
Default: —

A hint, in the brand voice ("Where to?").

disabled
Type: boolean
Default: false

Greys it out.

…
Type: InputHTMLAttributes
Default: —

Every other <input> attribute; the ref goes to the <input>.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).