component

Collapse

Running live. Go ahead and touch it.

Animated open and close to automatic height.

See it in the design system

How it behaves

  • Works with any content length
  • You supply the button and its state
  • Instant under reduced motion

Find more that moves like this

Kind
component
Blueprint
motion-kit 1.0.3
Moves by
entrance

Import

import { Collapse } from "@/components/shared/animation/collapse";

Props

PropWhat it does
openOpen or closed
idFor aria-controls on your button
childrenThe content
classNameStyles for the outer element

Your agent builds it. You take the credit.

Collapse ships inside the Motion Kit blueprint. These instructions tell your agent to take only this piece.

Version
1.0.3
Files
86
Dependencies
20
Assets
3

Paste this into Claude Code, Codex, Cursor, or whichever agent you trust today.

  • Building a blueprint runs its code, so use an isolated environment.
  • License: UNLICENSED.
  • Every value on this page is demo content that shows one component's behavior. The numbers are placeholders, not real figures.
component

Reveal

Seventeen entrance presets for a single element, from fade and blur to clips and flips.

component

Stagger

A group of elements that enter one after another, in either direction.

component

Text reveal

A headline or paragraph split into lines, words, or characters that animate in, with accessible labels.

component

Count up

An animated number whose final value is exposed to screen readers.