Choice
Primitives
import * as Choice from "@o/pipeline/components/choice";
At its core, Choice is a combobox select component
No frameworks found.
Next.js version 14.2.3 beta-1
Nuxt.js
Remix
Astro
Vite
Angular
Svelte
Vue
Multiple Choice
No frameworks found.
Next.js version 14.2.3 beta-1
Nuxt.js
Remix
Astro
Vite
Angular
Svelte
Vue
With ChoiceCreate
No frameworks found.
Next.js version 14.2.3 beta-1
Nuxt.js
Remix
Astro
Vite
Angular
Svelte
Vue
With showSearchValue on ChoiceCreate
No frameworks found.
Next.js version 14.2.3 beta-1
Nuxt.js
Remix
Astro
Vite
Angular
Svelte
Vue
Composition
With DropdownMenu
Choice can be used within DropdownMenu.SubContent to allow for item selection within a dropdown menu
See DropdownMenu documentation for more information.
With Popover
Behavior
- When selecting a single item, the
Popovershould close after selection - For most cases, the
Popovershould align to thestartof the trigger on thebottomedge.
Creating a “Trigger”
Either use:
ChoiceTrigger— to take care of rendering a button with the selected item contentChoiceSelected— to access the currently selected item for rendering a custom trigger
Bespoke Trigger
Through composition, you have full control over the trigger contents
Popover Size
- max (default)
- sm
- md
Popover Content Alignment
Align on the bottom so a user can quickly move to the next Choice
Align on the side (either right or left depending on space available)
List
Precomposed Components
Pre-configured Choice components for common use cases.
Choice
import { Choice } from "@o/pipeline/components/choice";
No frameworks found.
Next.js version 14.2.3 beta-1
Nuxt.js
Remix
Astro
Vite
Angular
Svelte
Vue
ChoicePopover
import { ChoicePopover } from "@o/pipeline/components/choice";
MultiChoice
import { MultiChoice } from "@o/pipeline/components/choice";
No frameworks found.
Next.js version 14.2.3 beta-1
Nuxt.js
Remix
Astro
Vite
Angular
Svelte
Vue
MultiChoicePopover
import { MultiChoicePopover } from "@o/pipeline/components/choice";