Utility
Terminal
█
form-field-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/form-field
Usage
import { FormField } from "@/components/ui/form-field";<FormField label="Username" hint="Must be unique" required>
<Text>my-input-here</Text>
</FormField>API Reference
FormField
| Prop | Type | Default |
|---|---|---|
label | string | required |
children | ReactNode | required |
error | string | - |
hint | string | - |
required | boolean | - |
gap | number | 0 |
errorIcon | string | "✗" |
labelColor | string | - |