Select

Select
In this article

Allows users to pick a value from a list of predefined options.

Usage
Props
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>
  );
};

Noticed something to change?

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!

twenty github image
The #1 Open Source CRM
©2024 Twenty PBC