Skip to content
Option sheet, light
Light
Option sheet, dark
Dark

Every state

  • Option sheet, default, light
    Option sheet, default, dark

    default

  • Option sheet, focus, light
    Option sheet, focus, dark

    focus

  • Option sheet, open, light
    Option sheet, open, dark

    open

  • Option sheet, hover-option, light
    Option sheet, hover-option, dark

    hover-option

  • Option sheet, focus-option, light
    Option sheet, focus-option, dark

    focus-option

  • Option sheet, chosen, light
    Option sheet, chosen, dark

    chosen

  • Option sheet, chosen-closed, light
    Option sheet, chosen-closed, dark

    chosen-closed

Props

PropTypeDefaultWhat it does
idstring"drawer-picker"Id prefix for the title.
openLabelstring"Choose a cabin"Trigger text while nothing is chosen.
titlestring"Cabin types"Sheet heading.
closeLabelstring"Close"Text of the close link.
optionsDrawerPickerOption[]six cabinsThe rows: id, name, detail, capacity (1 shows one person, more a group).
valuestring | null–The chosen id (controlled).
defaultValuestring | nullnullThe chosen id to start with.
onValueChange(id: string) => void–Called when a row is chosen.
openboolean–The drawer is open (controlled).
defaultOpenboolean–Opens the drawer on mount (previews and sheets).
onOpenChange(open: boolean) => void–Called when the drawer opens or closes.
containedboolean–Draws the panel inside the nearest relative parent instead of fixed over the page. For previews and sheets; leave off on a real page.
classNamestring–Extra classes on the wrapper.

More drawers

All 4
drawer-04 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans