Skip to content
Sign upGet access
MicrointeractionsTask dockMenu

Task dock (Pro)

ProIncluded in $99

A long task you can put away: the card shrinks into a dock tab that keeps its progress.

ProMinimise the render and the card shrinks into a small tab at the dock that keeps the progress as a ring; click it and the card grows back.

Minimise the card and it shrinks into a small tab at the dock, travelling to where the tab sits and taking its shape on the way. The tab keeps the progress as a ring and the task's short name. Click the tab and the card grows back out of it. If the task finishes while docked, the ring becomes a check.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/task-dock

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { TaskDock } from "@/components/ui/chatcn/pro/task-dock"

<TaskDock task={{ title, short: "Video", progress, status }} docked={docked} onDockedChange={setDocked}>
  <Preview />
</TaskDock>

Props

PropTypeNotes
task{ title, short?, detail?, progress, status }
docked / onDockedChangeboolean
childrenReactNodeUnder the card's header

Accessibility

  • The hidden card is inert; the tab is a button named with the task and its progress.

Motion

  • One 420 ms transform from card to tab and back, its corners following. Reduced motion: it swaps.