Input
A styled text input field for capturing user data. Supports all native input types, placeholders, and integrates with the Zostel form system.
Preview
Default
With Label
Disabled
With Icon
Usage
tsx
import { Input } from "zostel-ui";
<Input placeholder="Enter your name" />
<Input type="email" placeholder="you@zostel.com" />
<Input disabled placeholder="Disabled" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | "text" | The HTML input type (text, email, password, number, etc.). |
placeholder | string | — | Placeholder text shown when the input is empty. |
disabled | boolean | false | Disables the input field. |
className | string | "" | Additional CSS classes to apply. |
typeType:
stringDefault: "text"
The HTML input type (text, email, password, number, etc.).
placeholderType:
stringDefault: —
Placeholder text shown when the input is empty.
disabledType:
booleanDefault: false
Disables the input field.
classNameType:
stringDefault: ""
Additional CSS classes to apply.