Skip to content
Leslie edited this page May 27, 2025 · 7 revisions

Sample Usage

const data: Data = {
  label: 'displayed text',
  priority: true,
  data: { country: 'USA' },
};

Required

label

Type: string | React.JSX.Element

The value of the item shown in the selector.

Optional

priority

Type: boolean
Default value: undefined

If enabled, the element will move to the top of the list regardless of its current position.

data

Type: object
Default value: undefined

Additional data for the item. This is not directly used by the Selector component.

Clone this wiki locally