Select
Select<
FieldValues>(props):Element
Select components give users the ability to choose one or more options from a list of choices.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
FieldValues extends Record<string, unknown> |
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props | SelectProps |
Returns
Section titled “Returns”Element
Example
Section titled “Example”import { Select } from "@netlify/sdk/react/components";
<Select label="Your Favorite Dog" name="favoriteDog" options={[ { label: "Corgi", value: "corgi" }, { label: "Golden Retriever", value: "golden-retriever" }, { label: "Pomeranian", value: "pomeranian" }, ]}/>