Skip to content
Sign upGet access
MicrointeractionsSummarize squeezeMenu

Summarize squeeze (Pro)

ProIncluded in $99

A document that summarises itself: paragraphs press into gray bars and the summary points rise out of them.

ProEach paragraph presses into a gray bar, the page closes up, and the summary points rise out of the bars. Going back plays it in reverse.

Each paragraph presses down into a thin gray bar, top first, the page closes up to the height of what remains, and the summary points rise out of the bars one by one, their words drawn in from the start. Going back plays it in reverse. Heights are measured, so text of any length squeezes cleanly.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/summarize-squeeze

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 { SummarizeSqueeze } from "@/components/ui/chatcn/pro/summarize-squeeze"

<SummarizeSqueeze paragraphs={doc} summary={points} mode={mode} />

Props

PropTypeNotes
paragraphsstring[]The full text
summarystring[]The points
mode"full" | "summary"Change it to play

Accessibility

  • The hidden version is aria-hidden, so only the visible text is read.

Motion

  • Press: scaleY to 0.14 with a bar fading in, 45 ms apart. The box height eases 380 ms. Points rise 70 ms apart with a clip-path reveal of their words.
  • Reduced motion: a crossfade.