Dropdown configuration including options and labels
A searchable dropdown field with hidden input for form submission
Combines Popover and Command components for a combobox experience. Supports:
State Management Note: This component uses local state for the selected value because:
The prevPreservedValue pattern syncs context changes (e.g., after form error) to local state during render, following React's recommended approach for "adjusting state when props change".
<FormDropdownInput
label="Category"
htmlFor="category"
name="category"
options={[
{ id: "1", name: "Technology" },
{ id: "2", name: "Business" },
]}
placeholder="Select a category"
/>
GenericFormWrapper for form integration
A searchable dropdown input component for forms.