Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Input

A text field. Leading and trailing slots hold icons, units, prefixes or a keyboard hint without extra wrappers.

FormsDumb extras
Props
$ pnpm dlx shadcn@latest add @dumb/input

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { Input } from "@/components/ui/input"
<Input type="email" placeholder="you@company.com" />

Leading and trailing

leading and trailing render inside the field; focus styling moves to the wrapper.

⌘K
https://.1619.in
USD

Invalid

Set aria-invalid. Each style has its own error treatment.

Handles can’t contain spaces. Try deepak-kumar.

File

Native file input with styled button.

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

Input

PropTypeDefault
leadingextraReactNode

Rendered inside the field before the text.

-
trailingextraReactNode

Rendered inside the field after the text.

-
...propsComponentProps<"input">

All native input props.

-