Select
A common form component for choosing a predefined value in a dropdown menu.
Apple
Banana
Cherry
Features
- Support for single and multiple selection
- Typeahead to allow focusing items by typing text
- Keyboard navigation support including arrow keys, home/end
- Supports disabled items and groups
- Works with Field component for form integration
- Supports custom positioning
Installation
typo3 ui:add select
Please copy the files manually from GitHub into your project.
Read more about installing Components and Primitives.
Examples
Default Value
Set an initial selected value.
Apple
Banana
Cherry
Multiple Selection
Allow selecting multiple items.
React
Vue
Angular
Svelte
Disabled Items
Disable specific items in the list.
Available Option
Unavailable Option
Another Option
With Item Groups
Organize items into logical groups.
Fruits
Apple
Banana
Vegetables
Carrot
Broccoli
With Form Field
Use with the Field component for form validation.
United States
United Kingdom
Germany
Anatomy
<primitives:select.root>
<primitives:select.label />
<primitives:select.control>
<primitives:select.trigger>
<primitives:select.valueText />
<primitives:select.indicator />
</primitives:select.trigger>
<primitives:select.clearTrigger />
</primitives:select.control>
<primitives:select.positioner>
<primitives:select.content>
<primitives:select.item>
<primitives:select.itemText />
<primitives:select.itemIndicator />
</primitives:select.item>
<primitives:select.itemGroup>
<primitives:select.itemGroupLabel />
</primitives:select.itemGroup>
</primitives:select.content>
</primitives:select.positioner>
<primitives:select.hiddenSelect />
</primitives:select.root>