Skip to content
Sign upGet access
MicrointeractionsApprove cascadeMenu

Approve cascade (Pro)

ProIncluded in $99

One approval for a whole batch: a line runs down the spine and checks each row as it arrives.

ProApproving a batch runs a green line down the spine; each ticked row checks the instant the line reaches it, and rows you left out stay hollow as it passes.

The rows hang off a single spine. Approve, and a green line runs down it; each ticked row checks the instant the line reaches it, a short cascade top to bottom, while rows you left out stay hollow as the line passes and say Skipped. The button counts the result. It reads as one approval that touched every row.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/approve-cascade

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 { ApproveCascade } from "@/components/ui/chatcn/pro/approve-cascade"

<ApproveCascade items={steps} selected={ids} onSelectedChange={setIds} approved={approved} onApprove={approve} />

Props

PropTypeNotes
items{ id, label, detail? }[]
selected / onSelectedChangestring[]Rows you untick are skipped
approved / onApproveboolean / () => voidTurning it on plays the cascade
verb / doneLabelstringDefault "Approve" and "approved"

Keyboard

KeyAction
Space / Enter on a rowTick or untick it

Accessibility

  • Rows are role="checkbox" buttons with aria-checked; the button names the count.

Motion

  • The spine draws over (rows - 1) x 130 ms; each check pops 340 ms as the line arrives. Reduced motion: all check at once.