1 variant
Expanding Card
A card that keeps its size and slides a colored panel out from underneath on hover.
import { ExpandingCard } from "@/components/registry/expanding-card";
export function RoadmapCard() {
return (
<ExpandingCard
title="Q3 roadmap"
description="What's shipping this quarter."
href="/roadmap"
tone="violet"
reveal={<span>Read the full breakdown</span>}
/>
);
}104 more lines ship with an easeUI Pro license.
Buy a licenseInstall
$ bunx --bun shadcn add @easeui-pro/expanding-card
Props
titleRequiredstringThe card's heading.
descriptionRequiredstringOne or two lines under the heading.
revealReactNodeContent for the panel sliding out from underneath. Text and marks only, never its own buttons, since it is hidden at rest.
revealHeightnumberDefault 64How 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.
hrefstringMakes the whole card a link. Also what gives the reveal a keyboard path, since focus on the card opens it.
classNamestringMerged last, so anything passed here wins over the component's own classes.