Input

Three sizes, plus search and file types.

Installation

npx @noarka/cli add input

Usage

tsx
import { Input } from "@noarka/ui";
tsx
<Input type="email" placeholder="you@example.com" />

Examples

Sizes

Small, default, and large heights.

File upload

File type with a styled picker button.

Disabled and invalid

Dimmed when disabled, red ring when aria-invalid.

API reference

Input

PropTypeDefault
size

Height preset, or a number passed to the native width attribute.

"sm" | "default" | "lg" | number"default"
unstyled

Render without the container frame styles.

booleanfalse
type

Native input type. "search" and "file" get dedicated styling.

string-
placeholder

Hint text shown while empty.

string-
disabled

Disable interaction. Renders dimmed.

booleanfalse
readOnly

Show value without allowing edits.

booleanfalse
defaultValue

Initial value when uncontrolled.

string-
value

Controlled value. Use with onChange.

string-
onChange

Called when the value changes.

(event) => void-