Form Field
A wrapper component providing layout structure, label association, helper descriptions, character counter tracking, required asterisk tooltip explanations, and error state validation messaging.
import { FormField } from "@/components/ui/formField/formField";npx @bloomui-react/cli add formFieldDefault
Standard FormField wrapping an Input control.
Enter your primary account login email address.
Required Field & Asterisk Tooltip Explanation
Renders a red asterisk indicator on the field label with an interactive Tooltip explanation via requiredTooltip.
Validation Error State
Display validation failure messages in red using isInvalid and errorMessage.
Password must be at least 8 characters long and contain a symbol.
Character Counter & Helper Text Alignment
Pass maxLength and currentLength to track input text length with auto-warning highlight colors, and align footer controls with helperAlign.
left | right | betweenBrief summary of your professional background.
41/80Props — FormField
Supported properties for the FormField component.
| Prop | Type | Default | Description |
|---|---|---|---|
| maxLength | number | — | Maximum character limit displayed in footer counter bar. |
| currentLength | number | — | Current character length count for tracking. |
| requiredTooltip | ReactNode | 'This field is required' | Tooltip explanation rendered when hovering the required asterisk. |
| isRequired | boolean | false | Adds required asterisk to the label. |
| isInvalid | boolean | false | Highlights field in error state. |