Skip to content

Input

A native input element.

API Reference

Installation

pnpm dlx shadcn@latest add @frontal-labs/input

Usage

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

API Reference

Input

Styled wrapper for Input from Base UI. All standard input attributes are supported and forwarded to the underlying element.

In light mode the field carries a bg-muted fill on top of its border, so an empty input stays visible against a white surface instead of relying on the border alone. Disabled inputs switch to bg-input/50.

Examples

For accessible labelling and validation, prefer using the Field component to wrap inputs, or the FieldControl component. See some related examples.

Disabled

File

With Label

With Button

Form Integration