Default
Country: United Kingdom
A mobile picker in a bottom sheet: a searchable list (countries, long option lists) or a wheel (a date or a time), closed with Done.
Still previews of the real component, rendered from its stories. Pro code isn’t public, so nothing in them responds. Switch the theme and density for every preview at once.
Country: United Kingdom
Country: United Kingdom
Date of birth: 24 October 1990
Date of birth: 24 October 1990
The 19 design tokens PickerSheet reads, with the value each has in the theme and density chosen above. Change a token and the component follows, in Figma and in code.
| Token | Value now | CSS variable |
|---|---|---|
| color.bg.muted | … | --sd-color-bg-muted |
| color.border.strong | … | --sd-color-border-strong |
| color.border.subtle | … | --sd-color-border-subtle |
| color.text.default | … | --sd-color-text-default |
| color.text.secondary | … | --sd-color-text-secondary |
| dialog.bg | … | --sd-dialog-bg |
| dialog.fg | … | --sd-dialog-fg |
| dialog.radius | … | --sd-dialog-radius |
| dialog.scrim | … | --sd-dialog-scrim |
| elevation.3 | … | --sd-elevation-3 |
| layer.modal | … | --sd-layer-modal |
| radius.full | … | --sd-radius-full |
| radius.md | … | --sd-radius-md |
| spacing.gap.sm | … | --sd-spacing-gap-sm |
| spacing.inset.lg | … | --sd-spacing-inset-lg |
| spacing.inset.md | … | --sd-spacing-inset-md |
| spacing.inset.sm | … | --sd-spacing-inset-sm |
| spacing.stack.sm | … | --sd-spacing-stack-sm |
| target.min | … | --sd-target-min |
Pro components come as source from the SuperDuper registry, with a licence key from Solo, Team or Studio. The registry and checkout aren’t open yet.
Add it from the registry (Pro licence key)
npx shadcn@latest add @superduperui/picker-sheetThen import it
import { PickerSheet, PickerSheetTrigger } from "@/components/ui/picker-sheet"| Prop | Type | What it does |
|---|---|---|
kind | 'list' | 'wheel'Default 'list' | list (default): a searchable list (countries, long option lists). wheel: one spin column per part (day, month, year; hours, minutes). |
titlerequired | string | Required: names the sheet and is its heading. |
isOpen | boolean | |
onOpenChange | (isOpen: boolean) => void | |
items | PickerOption[]Default [] | List kind: the options. |
selectedKey | string | null | List kind: the selected option's id. |
onSelectionChange | (id: string) => void | List kind: called with the id of the option chosen; the sheet stays open until Done. |
searchLabel | stringDefault 'Search' | List kind: the search field's accessible name (its label is hidden). Default "Search". |
searchPlaceholder | string | |
emptyText | stringDefault 'No matches' | List kind: shown when nothing matches the search. Default "No matches". |
columns | PickerColumn[]Default [] | Wheel kind: the columns, left to right. |
doneLabel | stringDefault 'Done' | The header button that closes the sheet. Default "Done". |
className | string |
Screen readers announce List: "Country, dialog. Search, search text field", then "1 match" and "Ireland, selected, option". Wheel: "Month, spin button, October, 10 of 12".
WCAG 2.2 AAA criteria the component meets in Comfortable density: 1.4.6, 1.4.9, 2.1.3, 2.3.3, 2.4.13, 2.5.5.
Options and wheel rows stay 44px in Compact: density changes spacing only.
| axe-core (WCAG A, AA, AAA and best practice) | 80 runs across every story, theme, density and width: 0 violations |
|---|---|
| Rendered text contrast | 240 text runs: 0 below 7:1, lowest 8.43:1 |
| Target size | 44 targets: 0 under 44px in Comfortable |
| Focus appearance (2.4.13) | 18 focus stops in 3 browser engines: all pass |
| Keyboard script | Chromium 7 of 7, Firefox 7 of 7, WebKit 7 of 7 |
Manual passes with VoiceOver and NVDA haven’t been done yet.
Each step is scripted and run in Chromium, Firefox and WebKit.
| Key | What happens |
|---|---|
| Tab | Tab reaches the trigger |
| Enter | Enter opens the sheet with focus in the search field |
| Typing filters the list and announces the count | |
| ArrowDown | Down highlights the first match (focus stays in the field) |
| Enter | Enter chooses it |
| Escape | Esc clears the search |
| Escape | A second Esc closes the sheet and focus returns to the trigger |
The Figma component is PickerSheet, with Kind (List, Wheel). The Figma library isn’t published yet.
Figma to code: Kind → kind (List = "list", Wheel = "wheel"); Title → title; nested Search → searchPlaceholder.