Skip to Content
Columbus

Input

A native input element.

Installation

pnpm dlx shadcn@latest add @columbus/input

Usage

Give every input a name: wrap it in a Field with a FieldLabel, point a Label at it with htmlFor, or pass aria-label.

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

<Input aria-label="Email" placeholder="you@example.com" type="email" />;

Sizes

With label

For labels, descriptions, and validation messages together, use Field.

File

API reference

Also accepts every Base UI Input prop and native <input> attribute. className styles the outer wrapper, so use it for width and margins.

Prop

Type

On this page