# Select (@limerdev/zest) A choice from a list: `` (`type="single"` or `"multiple"`, `bind:value`, `name` for forms, `items`) holds a `Select.Trigger` (`placeholder`) and a `Select.Content`. Given `items`, the parts need no children: the trigger shows the chosen label and the content draws an item for each. For custom markup, give the trigger a `Select.Value` and the content `Select.Item`s. Items can be grouped (`Select.Group` with `Select.GroupHeading`) and divided (`Select.Separator`). Arrow keys move, Enter chooses, typing jumps to a match. Inside a `Field` the trigger is labelled, described and marked invalid by the Field. - Category: Data input - Import: `import { Select } from '@limerdev/zest'` - Bits UI: `Select`, https://bits-ui.com/docs/components/select - Exports: `Select.Root`, `Select.Group`, `Select.Label`, `Select.Item`, `Select.Content`, `Select.Trigger`, `Select.Separator`, `Select.ScrollDownButton`, `Select.ScrollUpButton`, `Select.GroupHeading`, `Select.Portal`, `Select.Value` - Use for: Choosing one (or a few) of a known list of options, more than a `RadioGroup` shows comfortably: a status, a country, a project. - Don't: Long lists people search in, or values they type: use `Combobox`. Two to five options that fit on screen: use `RadioGroup`. Actions rather than a value: use `DropdownMenu`. ```svelte Status ``` Props of `Select.Root`: - `allowDeselect` (`boolean`): Whether to allow the user to deselect an item by clicking on an already selected item. This is only applicable to `type="single"` selects/comboboxes. - `autocomplete` (`FullAutoFill | null`): The autocomplete attribute to forward to the hidden input element. - `disabled` (`boolean`, default `false`): Whether the combobox is disabled. - `items` (`{ value: string; label: string; disabled?: boolean | undefined; }[]`): Optionally provide an array of `value` and `label` pairs that will be used to match and trigger selection when the trigger is focused and a key is pressed while the content is closed. It's also used to handle form autofill. By providing this value, you enable selecting a value when the trigger is focused and a key is pressed without the content being open, similar to how a native `