Lucent UI
← ButtonGroupInputTextarea →
✦ LLM-ready

Input

atom

Single-line text field for names, emails, IDs, and free text. Supports label, placeholder, helper text, error state, and both controlled and uncontrolled usage.

"Add an Input from lucent-ui with a label, placeholder, and error state. It should be a controlled component."

Usage

React / JSX
import { Input } from 'lucent-ui'

<Input label="Input" size="md" placeholder="Input" />

Installation

pnpm add lucent-ui

API Reference

Input props — * required

PropTypeDefaultDescription
labelstring—Label displayed above the input.
size"sm" | "md" | "lg""md"Height, font size, and padding scale.
typestring"text"HTML input type (text, email, password, etc.).
placeholderstring—Hint text shown when the field is empty.
valuestring—Controlled value.
defaultValuestring—Uncontrolled initial value.
helperTextstring—Hint or description below the input.
errorTextstring—Error message; triggers the error visual state.
prefixReactNode—Inset label attached to the left of the field (e.g. "$", "https://").
suffixReactNode—Inset label attached to the right of the field (e.g. "kg", ".com").
disabledbooleanfalsePrevents interaction and mutes the appearance.
onChange(e: React.ChangeEvent<HTMLInputElement>) => void—Change event handler.