Form
React Hook Form integration with Paper Cut elevation guidance.
Basic Usage
The form surface owns elevation (Level 2), while fields stay inset (Level 1).
Sign in
Variants
Compact
Inline
States
Error styling is driven by field state and stays flat/inset.
Validation errors
Best Practices
Prefer muted labels in dense containers; keep actions flat when nested.
Settings panel
Anti-patterns
Avoid stacking elevation (Card + elevated Input/Button).
❌ Too loud
✅ Correct
API Reference
Component
Notes
FormProvider wrapper from React Hook Form.
FormFieldBridges RHF
Controller into slots via context.FormItemLayout wrapper that provides stable
id.FormLabelBuilt on
Label (supports variant/size and optional required indicator).FormControlWires aria attributes and error state to the underlying control.
FormDescriptionOptional help text.
FormMessageValidation message (renders only when present).