Input

A text field carved into the surface: the opposite of a button, it sinks in.

View as Markdown

Installation

npx shadcn@latest add @cozy/input

Usage

import { Input } from "@/components/ui/input"

<Input placeholder="Name your village…" />

Set aria-invalid="true" for errors and always pair it with text; colour alone is never the only signal.

Examples

With label and hint

Up to 20 letters. Vietnamese marks are welcome: Ổ, Ặ, Ự.

States

Focus ring, invalid (shakes once, plus a written message), disabled.

Names can’t contain #.