BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ForgeUI/expandable-card

Expandable Card

forgeui/expandable-card
FreeComponent

Interactive UI component to expand cards with smooth animations and detailed content using layout transitions.

Live preview

live · rendered by the registry
Rendered by ForgeUI on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://forgeui.in/r/expandable-card.json

Source

registry/forgeui/expandable-card.tsxforgeui.in/r/expandable-card.json · first 6 KB
1"use client";
2
3import type React from "react";
4import { cn } from "@/lib/utils";
5import type { SVGProps } from "react";
6import { useEffect, useRef, useState } from "react";
7import { AnimatePresence, motion } from "motion/react";
8
9export interface CardItem {
10 id: string;
11 title: string;
12 subtitle: string;
13 icon: React.ReactNode;
14 description: string;
15 details: string;
16 metadata: string;
17}
18
19export interface ExpandableCardProps {
20 items: CardItem[];
21 className?: string;
22}
23
24export default function ExpandableCard({
25 items,
26 className,
27}: ExpandableCardProps) {
28 const [current, setCurrent] = useState<CardItem | null>(null);
29 const ref = useOutsideClick(() => setCurrent(null));
30
31 return (
32 <div className="">
33 <AnimatePresence>
34 {current ? (
35 <motion.div
36 initial={{ opacity: 0 }}
37 animate={{ opacity: 1 }}
38 exit={{ opacity: 0 }}
39 className="bg-background/50 bg-opacity-10 pointer-events-none absolute inset-0 z-10 backdrop-blur-xl"
40 />
41 ) : null}
42 </AnimatePresence>
43
44 <AnimatePresence>
45 {current ? (
46 <>
47 <div className="absolute inset-0 z-10 grid place-items-center">
48 <motion.div
49 className="bg-background flex h-fit w-full max-w-xl cursor-pointer flex-col items-start gap-4 overflow-hidden rounded-md border p-4"
50 ref={ref}
51 layoutId={`cardItem-${current.id}`}
52 >
53 <div className="flex w-full items-center gap-4">
54 <motion.div layoutId={`cardItemIcon-${current.id}`}>
55 {current.icon}
56 </motion.div>
57 <div className="flex grow items-center justify-between">
58 <div className="flex w-full flex-col gap-0.5">
59 <div className="flex w-full flex-row justify-between gap-0.5">
60 <motion.div
61 className="text-primary text-sm font-medium"
62 layoutId={`cardItemTitle-${current.id}`}
63 >
64 {current.title}
65 </motion.div>
66 </div>
67 <motion.p
68 layoutId={`cardItemSubtitle-${current.id}`}
69 className="text-primary/70 text-sm"
70 >
71 {current.subtitle} / {current.description}
72// … truncated

Files it writes

  • registry/forgeui/expandable-card.tsx

Facts

Registry
ForgeUI
Type
registry:ui
Access
Free
Files written
1
Licence
NOASSERTION
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

Docs on ForgeUI forgeui.in AmanShakya0018/forgeui on GitHub Raw registry item This item as JSON

More from ForgeUI

All 28 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Formanimated-formForgeUIComponentsFreeno deps
Animated OTPanimated-otpForgeUIComponentsFreeno deps
Animated Tabsanimated-tabsForgeUIComponentsFreeno deps
AuralisauralisForgeUIComponentsFreeno deps
Bot Detectionbot-detectionForgeUIComponentsFreeno deps
Chromatic Fluidchromatic-fluidForgeUIComponentsFreeno deps
CloudscapecloudscapeForgeUIComponentsFreeno deps
CosmicriftcosmicriftForgeUIComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex