Listbox
Single or multi-select list with keyboard navigation
deployments:read
deployments:write
projects:read
projects:write
secrets:read
secrets:write (requires 2FA)
Granting 2 of 6 scopes. Tokens inherit team membership.
Accessibility
- Pair the control with a visible label or aria-label and keep helper or error text programmatically associated.
- Preserve expected keyboard entry, selection, and state announcements for the chosen input pattern.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Listbox } from '@dryui/ui';
</script>
<Listbox.Root>
<Listbox.Item>...</Listbox.Item>
</Listbox.Root> Import options
Root package
ts
import { Listbox } from '@dryui/ui' Per-component subpath
ts
import { Listbox } from '@dryui/ui/listbox' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
Listbox.Root | |||||
| value | string | string[] | Current controlled or bindable value. | '' | — | ✓ |
| multiple | boolean | — | false | — | — |
| disabled | boolean | Prevents interaction and applies disabled styling. | false | — | — |
| onvaluechange | (value: string | string[]) => void | — | — | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Listbox.Item | |||||
| value | string | Current controlled or bindable value. | — | ✓ | — |
| disabled | boolean | Prevents interaction and applies disabled styling. | false | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |