All registry items
primitives/r/tonal-input.json
Tonal Form Controls
Calm labeled input (default & pill search), select, and textarea with semantic error states.
Tonal Form Controls
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Lowercase letters and hyphens recommended.
Please enter at least 10 characters before publishing.
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/tonal-input.jsonDependencies
Tonal Registry Dependencies
npm Packages
clsxtailwind-mergelucide-react
Usage
import { TonalInput, TonalSelect } from "@/components/tonal/input";
<TonalInput label="Project name" placeholder="e.g. Tonal Docs Edge" />Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Visible accessible label linked via htmlFor. |
| variant | "default" | "pill" | "default" | Standard rounded field or cool tonal pill search input. |
| hint | string | — | Muted helper text. |
| error | string | — | Semantic danger border + error message. |
| leadingIcon | ReactNode | — | Optional left icon slot. |