randomseeds logo
Random Design System

Form

Form primitives built on React Hook Form and Radix UI. Provides automatic validation, error messaging, and accessibility.

Form Pattern

Enter your full name.

Usage

Use the Form components with React Hook Form for complex forms requiring validation. For simple forms, composing Label, Input, and Button directly is sufficient.

The Form system provides FormField, FormItem, FormLabel, FormControl, FormDescription, and FormMessage for structured form layouts with error handling.

Props

PropTypeDefaultDescription
FormFieldcomponentWraps a controlled form field with RHF Controller
FormItemcomponentContainer for label, input, description, and error
FormLabelcomponentAccessible label linked to the field
FormMessagecomponentDisplays validation error messages
FormDescriptioncomponentHelp text below the field