Select
Shadcn Select reconstructed on the Proto UI Base Select protocol.
Ordinary demos on this page explicitly use Shadcn Rhea, with matching examples. This does not change public compatibility defaults or imply complete browser, native-host or visual acceptance. Neutral Surface/Text atoms retain their own public semantics; the consumer composition supplies the family presentation theme.
This entry composes the shadcn visual and API surface over the cataloged Base Select protocol. Web Components, React, and Vue share the same selection, focus, and ARIA semantics.
Current scope
Section titled “Current scope”Root,Trigger,Value,Content,Item,Surface,Viewport,ItemText,Group,Label, andSeparatordefaultValue/value,defaultOpen/open, and their change eventsTrigger.size="sm | default"Trigger.appearance="default"(Rhea);ghostis New York-onlyContent.position="item-aligned | popper", defaulting to shadcn/ui’sitem-aligned- single selection, disabled items, keyboard navigation, typeahead, popup dismissal, and focus restoration
Group is a passive option container; Label names only its group, and Separator is decorative and contentless. These parts inherit the same Rhea scope as Trigger, Content, Surface and Item, including logical portal descendants. The Rhea style source is the modern presentation reference. The 02cad611 New York Select remains a separate compatibility/source comparison, not this demo’s selected skin.
The full Surface → Viewport → Item → ItemText composition supplies explicit parts for item-aligned positioning; legacy compositions and explicit popper remain supported. This does not establish complete Radix positioning parity. Scroll buttons, ItemIndicator, and form submission remain open. GPUI peer group-name relationships have transport evidence, but its current wire format omits the Separator’s hidden-tree contribution; native accessibility acceptance remains unverified.
Trigger appearance
Section titled “Trigger appearance”This page uses appearance="default" with styleProfile="rhea". The optional ghost appearance is a Proto UI extension supported only by new-york-v4 (alias new-york); combining it with Rhea or another modern profile is rejected, not silently converted. Set appearance on Trigger, not Root or Content. Without any explicit or inherited profile, Select retains its existing New York compatibility default. A Root style scope supplies one profile to the complete composition; explicit leaf choices override inheritance and must be intentional. Changing presentation does not change the Base selection, keyboard or popup protocol.
Install
Section titled “Install”
npx @proto.ui/cli@latest add wc shadcn-select
Replace wc with react, vue or vue2 to generate the facade for that host.
Passing open or value selects controlled mode for that fact.
| Prop | Type | Default |
|---|---|---|
defaultOpen | boolean | false |
defaultValue | string | '' |
disabled | boolean | false |
readOnly | boolean | false |
closeOnSelect | boolean | true |
These props belong to Root. appearance belongs to Trigger.