Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 478 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 478 Bytes

shadcn-creatable-select

Creatable select component for shadcn/ui

usage example

<CreatableSelect
    name="industry"
    defaultValue={{
        label: data?.data?.industry || '',
        value: data?.data?.industry || '',
    }}
    isLoading={industriesFetching}
    mutate={industryMutate}
    options={
        industries?.data?.data?.map((industry) => ({
            label: industry.industry,
            value: industry.industry,
        })) || []
     }
/>