Use Select for a styled single-value picker with escaped labels, grouped items, typeahead, and logical Tab exit.
pnpm dlx shadcn@latest add @tile-ui/select
import { Select } from '@tile-ui/solid';
<Select defaultValue="solid" selectedText="Solid <SSR>">
<SelectTrigger><SelectValue placeholder="Choose" /></SelectTrigger>
<SelectContent><SelectItem value="solid">Solid <SSR></SelectItem></SelectContent>
</Select>
- Grouped options and escaped selected labels
- Arrow navigation, typeahead, selection, and logical Tab exit
- Controlled
value and onValueChange callbacks
This Solid implementation uses native nested primitives and does not expose asChild. Controlled state uses Solid accessors and explicit callbacks such as onOpenChange, onValueChange, or onSearchChange where the family supports them.
Portal content is omitted from the server response and mounted during hydration into the resolved document or nested portal scope. Closed and default-open roots keep deterministic trigger IDs and ARIA relationships without a hydration mismatch.
Keyboard behavior follows the shared Foundation: focus and Tab order, Escape dismissal, arrow-key movement, typeahead, submenu branches, and trigger restoration are applied according to the component role.
| Item |
Purpose |
select |
Component source and module styles |
core |
Framework-agnostic logic helpers |
utils |
Shared utility helpers |
styles |
Shared SCSS tokens and globals |
| Prop |
Type |
Default |
open |
boolean |
— |
defaultOpen |
boolean |
— |
onOpenChange |
(open: boolean) => void |
— |
value |
string |
— |
defaultValue |
string |
— |
onValueChange |
(value: string) => void |
— |
triggerId |
string |
— |
contentId |
string |
— |
selectedText |
string |
— |
ref |
CallbackRef<HTMLDivElement> |
— |
| Prop |
Type |
Default |
size |
'sm' | 'default' |
— |
ref |
CallbackRef<HTMLButtonElement> |
— |
| Prop |
Type |
Default |
position |
'item-aligned' | 'popper' |
— |
align |
'start' | 'center' | 'end' |
— |
sideOffset |
number |
— |
container |
Node |
— |
ref |
CallbackRef<HTMLDivElement> |
— |
| Prop |
Type |
Default |
value |
string |
— |
disabled |
boolean |
— |
textValue |
string |
— |
ref |
CallbackRef<HTMLDivElement> |
— |
| Prop |
Type |
Default |
placeholder |
string |
— |
ref |
CallbackRef<HTMLSpanElement> |
— |
| Prop |
Type |
Default |
labelId |
string |
— |
ref |
CallbackRef<HTMLDivElement> |
— |
| Prop |
Type |
Default |
ref |
CallbackRef<HTMLDivElement> |
— |
| Prop |
Type |
Default |
ref |
CallbackRef<HTMLDivElement> |
— |
| Prop |
Type |
Default |
ref |
CallbackRef<HTMLDivElement> |
— |