brijr/ui

Lab

Select

npx shadcn@latest add @brijr/select

Parts

Use Pin open in the header to hold this list open. SelectFieldLabel names the field and SelectLabel names a group (SelectGroupLabel is the same part). Also shows SelectValueIcon, SelectGroup, SelectSeparator, SelectItemIcon and a disabled item.

Preview device
all parts · open

Trigger states

sm · placeholder
default · placeholder
sm · filled
default · filled
disabled
disabled · placeholder
readOnly
required
aria-invalid
aria-invalid · filled
with value icon

Sides

Each side, pinned. A side flips when there is not enough room.

top
right
bottom
left

Align

A narrow trigger with wider options, so the list overhangs and the alignment shows. Items set label for the short trigger text.

start
center
end

Multiple

Choosing an item toggles it and keeps the list open.

multiple · 2 selected
multiple · maxLabels 2
multiple · empty

Content

long list · scrolls · max-h-64
long list · available height
alignItemWithTrigger
long value · narrow trigger
long option labels
no items
all items disabled
full width

In a form

Language

Used for emails and notifications.

SelectFieldLabel · helper text
Country

Choose a country to continue.

SelectFieldLabel · aria-invalid · error text
Billing country
SelectFieldLabel · disabled
form row · sm