Allows users to pick a value from a list of predefined options.
import { RecoilRoot } from 'recoil'; import { IconTwentyStar } from 'twenty-ui'; import { Select } from '@/ui/input/components/Select'; export const MyComponent = () => { return ( <RecoilRoot> <Select className disabled={false} dropdownScopeId="exampleDropdown" label="Select an option" options={[ { value: 'option1', label: 'Option A', Icon: IconTwentyStar }, { value: 'option2', label: 'Option B', Icon: IconTwentyStar }, ]} value="option1" /> </RecoilRoot> ); };
As an open-source company, we welcome contributions through Github. Help us keep it up-to-date, accurate, and easy to understand by getting involved and sharing your ideas!