Task dock (Pro)
ProIncluded in $99A long task you can put away: the card shrinks into a dock tab that keeps its progress.
On this page
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
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
import { TaskDock } from "@/components/ui/chatcn/pro/task-dock"
<TaskDock task={{ title, short: "Video", progress, status }} docked={docked} onDockedChange={setDocked}>
<Preview />
</TaskDock>Props
| Prop | Type | Notes |
|---|---|---|
task | { title, short?, detail?, progress, status } | |
docked / onDockedChange | boolean | |
children | ReactNode | Under 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.