BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/bejamas/ui/select

select

bejamas-ui/select
FreeComponent

bejamas/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by bejamas/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.bejamas.com/r/select.json

Source

ui/select/Select.astroui.bejamas.com/r/select.json · first 6 KB
1---
2// Generated from bejamas-juno style registry. Do not edit packages/ui/src/components/select/Select.astro directly.
3/**
4 * @component Select
5 * @title Select
6 * @description A dropdown control that lets users pick one option from a list with full keyboard navigation and accessibility support.
7 * @figmaUrl https://www.figma.com/design/koxai7zw5vIuBzuVxe5T2l/bejamas-ui?node-id=2549-18530&t=YFStJ3V8fXEO8QD8-4
8 *
9 * @preview
10 * <Select defaultValue="apple" class="w-[200px]">
11 * <SelectTrigger>
12 * <SelectValue placeholder="Select a fruit" />
13 * </SelectTrigger>
14 * <SelectContent>
15 * <SelectItem value="apple">Apple</SelectItem>
16 * <SelectItem value="banana">Banana</SelectItem>
17 * <SelectItem value="cherry">Cherry</SelectItem>
18 * </SelectContent>
19 * </Select>
20 *
21 * @usage
22 *
23 * ```astro nocollapse
24 * ---
25 * import {
26 * Select,
27 * SelectTrigger,
28 * SelectValue,
29 * SelectContent,
30 * SelectItem,
31 * SelectGroup,
32 * SelectLabel,
33 * SelectSeparator
34 * } from '@bejamas/ui/components/select';
35 * ---
36 *
37 * <Select name="fruit" defaultValue="apple">
38 * <SelectTrigger>
39 * <SelectValue placeholder="Select a fruit" />
40 * </SelectTrigger>
41 * <SelectContent>
42 * <SelectItem value="apple">Apple</SelectItem>
43 * <SelectItem value="banana">Banana</SelectItem>
44 * </SelectContent>
45 * </Select>
46 * ```
47 *
48 * @api
49 *
50 * ### Events
51 *
52 * The select emits custom events that you can listen to:
53 *
54 * | Event | Detail | Description |
55 * |-------|--------|-------------|
56 * | `select:change` | `{ value: string }` | Fired when a new value is selected |
57 * | `select:open-change` | `{ open: boolean }` | Fired when the dropdown opens or closes |
58 *
59 * ```astro nocollapse console
60 * <Select id="my-select">
61 * <SelectTrigger>
62 * <SelectValue placeholder="Choose..." />
63 * </SelectTrigger>
64 * <SelectContent>
65 * <SelectItem value="option1">Option 1</SelectItem>
66 * <SelectItem value="option2">Option 2</SelectItem>
67 * </SelectContent>
68 * </Select>
69 * ```
70 *
71 * ```js nocollapse
72 * const select = document.getElementById('my-select');
73 *
74 * select.addEventListener('select:change', (e) => {
75 * console.log('Selected value:', e.detail.value);
76 * });
77 *
78 * select.addEventListener('select:open-change', (e) => {
79 * console.log('Is open:', e.detail.open);
80 * });
81 * ```
82 *
83 * ### Programmatic Control
84 *
85 * You can control the select programmatically by dispatching a `select:set` event:
86 *
87 * ```js nocollapse
88// … truncated

What it pulls in

npm packages

  • @data-slot/select

Files it writes

  • ui/select/Select.astro
  • ui/select/SelectTrigger.astro
  • ui/select/SelectValue.astro
  • ui/select/SelectContent.astro
  • ui/select/SelectItem.astro
  • ui/select/SelectGroup.astro
  • ui/select/SelectLabel.astro
  • ui/select/SelectSeparator.astro
  • ui/select/index.ts

Facts

Registry
bejamas/ui
Type
registry:ui
Access
Free
Files written
9
Licence
MIT
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on bejamas/ui ui.bejamas.com bejamas/ui on GitHub Raw registry item This item as JSON

More from bejamas/ui

All 41 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionbejamas/uiComponentsFree1 dep · 5 files
alertalertbejamas/uiComponentsFreeno deps · 4 files
avataravatarbejamas/uiComponentsFreeno deps · 7 files
badgebadgebejamas/uiComponentsFreeno deps · 2 files
breadcrumbbreadcrumbbejamas/uiComponentsFreeno deps · 5 files
buttonbuttonbejamas/uiComponentsFreeno deps · 2 files
button-groupbutton-groupbejamas/uiComponentsFreeno deps · 4 files
cardcardbejamas/uiComponentsFreeno deps · 10 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex