Skip to content
Sign upGet access
MicrointeractionsSource stackMenu

Source stack (Pro)

ProIncluded in $99

Sources that pile up as they are found, and deal out into a row with their names when you point at them.

ProEach site found drops onto the stack and the count rolls; point at it and it fans out into an arc with every name.

Each new site drops onto the stack from above and settles over the last one, and the count rolls with it. Point at the stack, focus it or tap it, and it deals out into a row with a list of every site under it, so you can see what was read before reading the answer. Past five the stack keeps the newest and counts the rest.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/source-stack

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 { SourceStack } from "@/components/ui/chatcn/pro/source-stack"

<SourceStack sources={found} searching={!done} />

Props

PropTypeNotes
sources{ id, title, site, icon? }[]In the order found
searchingbooleanPrefixes Searching
visiblenumberIcons kept in the stack. Default 5
openbooleanControlled, for tours

Accessibility

  • The stack is a button named with the count, with aria-expanded; the list is plain text.

Motion

  • Drops are 420 ms, 60 ms apart; dealing out is a 300 ms transform with a 25 ms stagger. Reduced motion: no drop or deal.