Getting Started
AI-Assisted Development
Governance
Components
Search for a command to run or a page to navigate to.
Connects the input control to the form field's validation state and ARIA attributes. Use this to wrap input, textarea, select, or custom form elements.
import { Form } from "@strongtie/design-system/form"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 | - |
import { Form } from "@strongtie/design-system/form"
export default function Example() {
return <Form>{/* Your content here */}</Form>
}Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
form-descriptionform-itemform-labelform-messageEnsure proper accessibility attributes are added when implementing this component.