Lucent UI
DividerFormFieldBreadcrumb
✦ LLM-ready

FormField

atom

Label wrapper that standardises required flags, helper text, and inline error messages across any form control. Wrap any input with it.

"Wrap an Input with a FormField from lucent-ui. Add a label, required flag, helper text, and an error message for validation."

Usage

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

<FormField label="FormField">FormField</FormField>

Installation

pnpm add lucent-ui

API Reference

FormField props — * required

PropTypeDefaultDescription
label*stringLabel text.
htmlForstringLinks the label to a form control via id.
requiredbooleanfalseAppends a red asterisk to the label.
helperTextstringHint shown below the control.
errorMessagestringError shown below the control; overrides helperText.
children*React.ReactNodeThe form control to label.