Skip to content
Logic2BUI

Search docs

Search components and documentation

New
Menu

Input

Displays a form input field.

Installation

npx logic2b@latest add input

Usage

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

<Input type="email" placeholder="Email" />

Supports every native input type including file. Invalid state styling via aria-invalid.

API

Input renders a native <input> and forwards every standard attribute (React.ComponentProps<"input">).

Prop Type Default
type string — any native input type (text, email, file, …) text
disabled boolean false
aria-invalid boolean — applies the destructive ring/border
placeholder string
className string

Examples

File

Disabled

Invalid