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
labelstringLabel displayed above the input.
size"sm" | "md" | "lg""md"Height, font size, and padding scale.
typestring"text"HTML input type (text, email, password, etc.).
placeholderstringHint text shown when the field is empty.
valuestringControlled value.
defaultValuestringUncontrolled initial value.
helperTextstringHint or description below the input.
errorTextstringError message; triggers the error visual state.
prefixReactNodeInset label attached to the left of the field (e.g. "$", "https://").
suffixReactNodeInset label attached to the right of the field (e.g. "kg", ".com").
disabledbooleanfalsePrevents interaction and mutes the appearance.
onChange(e: React.ChangeEvent<HTMLInputElement>) => voidChange event handler.