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
FormFieldcomponent—Wraps a controlled form field with RHF Controller
FormItemcomponent—Container for label, input, description, and error
FormLabelcomponent—Accessible label linked to the field
FormMessagecomponent—Displays validation error messages
FormDescriptioncomponent—Help text below the field