Browse documentation

Component

Input

Inputs stay lightweight and accessible while inheriting semantic focus, border, and placeholder behavior from the theme layer.

Preview

Use your work address.

This username is taken.

Installation

Packages are unreleased. Follow the packed artifact setup for package mode, or run the local CLI in copy mode and complete the reported npm, token CSS, and Tailwind setup.

Copy Input · bash
pnpm exec ui add input
Full installation guide

Usage

This example uses package mode. In copy mode, import the generated component from your project and complete the manual setup steps in the installation guide.

Input example · tsx
import { Field, FieldControl, FieldDescription, FieldLabel, Input } from '@nimjs/ui';

export function Example() {
  return <Field description><FieldLabel>Email</FieldLabel><FieldControl><Input type="email" /></FieldControl><FieldDescription>Use your work address.</FieldDescription></Field>;
}

System metadata

Guidance

Pair Input with a visible label or compose it inside Field for description and error IDs. Use invalid for visual error styling and native required or disabled for form behavior.