Skip to main content

SelectAddField

To implement SelectAddField component into your project you'll need to add the import:

import { SelectAddField } from "@shoptet/ui";

After adding import into your project you can use it simply like:

<SelectAddField
options={[
{ value: "value1", label: "Label 1" },
{ value: "value2", label: "Label 2" },
{ value: "value3", label: "Label 3" },
]}
label="Label"
getOptionValue={(option) => option.value}
getOptionLabel={(option) => option.label}
/>