FormSelectField Reference
Consulte esta subpágina para ver import, available props, exemplo de uso e controles vivos do component.
FormSelectField
React Hook Form wrapper for SelectField.
Use when: Use when a select belongs to a react-hook-form schema.
Import
import { FormSelectField } from "@components/index";Example
<FormSelectField control={form.control} name="status" options={options} label="Status" />Available Props
controlRHF control
Form controller from react-hook-form.
namefield path
Field identifier in form schema.
optionsSelectFieldOption[]
Selectable list.
Live Preview
Wrapper over `SelectField` for RHF forms.
Controls
Use this one only inside forms with `Controller`-based state.