Overview
Forms & inputs
Search for a command to run or a page to navigate to.
Form is a wrapper built on React Hook Form that connects fields, labels, descriptions, and validation messages.
import { Form } from "@strongtie/design-system/form"Not installed yet? Add the package to your app:
This module exports the following components:
FormControlFormDescriptionFormFieldFormItemFormLabelFormMessage<FormField>| Prop | Type | Default | Description |
|---|---|---|---|
name * | string | - | |
render * | ({ field, fieldState, formState, }: { field: ControllerRenderProps<TFieldValues,... | - | |
control | Control<TFieldValues, any, TFieldValues> | - | |
defaultValue | any | - | |
disabled | boolean | - | |
exact | boolean | - | |
rules | Omit<RegisterOptions<TFieldValues, TName>, "disabled" | "valueAsNumber" | "value... | - | |
shouldUnregister | boolean | - |