Skip to content

DockCard

A floating one-row card whose children open in a bottom sheet with a pinned footer.

Group: Overlays · Kind: macro

open
Plan readyAsk dock
3 questions
Fold the composer into the Dock

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-dock-card on Web
exponential-ui-dock-card on iOS
exponential-ui-dock-card on Android
exponential-ui-dock-card on Desktop
Prop Type Required Bindable Description
label string yes yes The tinted header word.
title string yes yes The one line under the header.
caption string – yes Muted text after the label.
meta string – yes Muted text at the header’s end.
icon icon – – The glyph before the label.
tone neutral | primary | success | warning | danger | info – – The glyph’s and the label’s tone. Default "neutral".
open boolean – yes Whether the sheet shows; bind it. Default false.
  • on.press: runs an action
  • on.change: runs an action
  • footer: one component by id

many

No basic catalog component maps here.

Box · Drawer · Icon · Text

Role: button

trigger = button named label: title ($a11y); the sheet is a Drawer (dialog, modal).

Keys Action
Enter Space open the sheet
– As Drawer once open

Recipe parts: DockCard/root DockCard/trigger DockCard/icon DockCard/body DockCard/header DockCard/label DockCard/caption DockCard/spacer DockCard/meta DockCard/row DockCard/title DockCard/chevron DockCard/sheet

Keyed by: tone :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Drawer · Icon · Text · Dialog · AlertDialog · Popover · Tooltip · Menu