Skip to content

1 variant

Expanding Card

A card that keeps its size and slides a colored panel out from underneath on hover.

Q3 roadmap

Q3 roadmap

Data Table filters, Action Menu toggles, and two more text animation variants.

Install

$ bunx --bun shadcn add @easeui-pro/expanding-card

Props

titleRequiredstring

The card's heading.

descriptionRequiredstring

One or two lines under the heading.

revealReactNode

Content for the panel sliding out from underneath. Text and marks only, never its own buttons, since it is hidden at rest.

revealHeightnumberDefault 64

How far the panel travels, in px. The wrapper reserves exactly this much, so nothing on the page moves.

tone"violet" | "neon" | "warning" | "accent"Default "violet"

Color of the panel.

hrefstring

Makes the whole card a link. Also what gives the reveal a keyboard path, since focus on the card opens it.

classNamestring

Merged last, so anything passed here wins over the component's own classes.