Inset Command Dock

PreviousNext

Compact inset toolbar for dashboard actions, detail pages, builders, and SaaS workflows.

Installation

pnpm dlx shadcn@latest add https://matos-ui.com/r/inset-command-dock.json

Usage

import { InsetCommandDock } from "@/components/matos-ui/inset-command-dock"
<InsetCommandDock
  defaultActiveId="edit"
  groups={[
    {
      id: "content",
      actions: [
        { id: "edit", label: "Edit", icon: <FilePenLine /> },
        { id: "preview", label: "Preview", icon: <Eye /> },
      ],
    },
  ]}
  status={{ label: "Saved" }}
/>

Reference

InsetCommandDock Props

PropTypeDefaultDescription
actionsInsetCommandDockAction[]-Flat list of actions.
groupsInsetCommandDockGroup[]-Grouped actions with separators.
activeIdstring?-Controlled active action id.
defaultActiveIdstring?First actionInitial active action id.
onAction(action) => void-Callback fired when action is used.
showLabelsbooleantrueShows labels next to icons.
statusInsetCommandDockStatus?-Optional dock status.
shape"rounded" | "pill""rounded"Dock corner style.
density"compact" | "comfortable""comfortable"Dock spacing preset.
variant"default" | "floating""default"Visual treatment.

Also exported: insetCommandDockVariants, InsetCommandDockGroupView, InsetCommandDockStatusView, and related types.