BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ericts-ui/expanding-panel
This component no longer exists. It was in ericts-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-15 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Expanding Panel

ericts-ui/expanding-panel
RemovedComponent

A floating panel that grows from a compact icon trigger and holds arbitrary content.

Live preview

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

Install it

npx shadcn@latest add https://ui.ericts.com/r/expanding-panel.json

Source

registry/base/ui/expanding-panel.tsxui.ericts.com/r/expanding-panel.json · first 6 KB
1"use client";
2
3import { ChevronsUpDown } from "lucide-react";
4import { AnimatePresence, motion, useReducedMotion } from "motion/react";
5import * as React from "react";
6
7import { cn } from "@/lib/utils";
8
9const PANEL_TRANSITION = {
10 type: "spring",
11 duration: 0.24,
12 bounce: 0,
13} as const;
14const CONTENT_TRANSITION = {
15 duration: 0.2,
16 ease: [0.16, 1, 0.3, 1],
17} as const;
18const REDUCED_TRANSITION = { duration: 0 } as const;
19// Single source of truth for the panel's height cap. Applied to the content
20// region so consumers can add a scroll area / pinned footer without knowing it.
21const CONTENT_MAX_HEIGHT =
22 "var(--expanding-panel-max-height, min(15.5rem, calc(100dvh - 8rem)))";
23
24type ExpandingPanelContextValue = {
25 open: boolean;
26 setOpen: (open: boolean) => void;
27};
28
29const ExpandingPanelContext =
30 React.createContext<ExpandingPanelContextValue | null>(null);
31
32/**
33 * Access the expanding panel's open state from within its `children`, e.g. to
34 * collapse the panel after an action. Throws when used outside the component.
35 */
36export function useExpandingPanel() {
37 const context = React.useContext(ExpandingPanelContext);
38
39 if (!context) {
40 throw new Error(
41 "useExpandingPanel must be used within an <ExpandingPanel>.",
42 );
43 }
44
45 return context;
46}
47
48export type ExpandingPanelClassNames = {
49 panel?: string;
50 content?: string;
51 trigger?: string;
52};
53
54export type ExpandingPanelProps = Omit<
55 React.ComponentPropsWithoutRef<"aside">,
56 "children"
57> & {
58 open?: boolean;
59 defaultOpen?: boolean;
60 onOpenChange?: (open: boolean) => void;
61 triggerIcon?: React.ReactNode;
62 openLabel?: string;
63 closeLabel?: string;
64 closeOnEscape?: boolean;
65 closeOnOutsideClick?: boolean;
66 classNames?: ExpandingPanelClassNames;
67 children?: React.ReactNode;
68};
69
70/**
71 * A floating panel that grows in width and height from a compact icon trigger
72 * in its top-right corner. It is intentionally content-agnostic.
73 *
74 * The panel is bounded by `--expanding-panel-width` and
75 * `--expanding-panel-max-height` and clips overflow, so the morph never runs
76 * off-screen. The content region is a flex column capped at that height, so
77 * tall content can add a `flex-1` scroll area (and, e.g., a `shrink-0` pinned
78 * footer) without re-declaring the cap.
79 *
80 * The trigger overlays the top-right corner; content that reaches it should
81 * clear it with `pr-[var(--expanding-panel-trigger-inset)]` (defaults to the
82 * 2rem trigger size).
83 */
84export function ExpandingPanel({
85 open,
86// … truncated

What it pulls in

npm packages

  • lucide-react
  • motion

Files it writes

  • registry/base/ui/expanding-panel.tsx

Facts

Registry
ericts-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
yesterday

Go to the source

Docs on ericts-ui ui.ericts.com EricTsai83/ericts-ui on GitHub Raw registry item This item as JSON

More from ericts-ui

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Adaptive Draweradaptive-drawerericts-uiComponentsFree2 deps
Adaptive Switchadaptive-switchericts-uiComponentsFree2 deps
Check Markcheck-markericts-uiComponentsFreeno deps · 2 files
Context Cursorcontext-cursorericts-uiComponentsFree1 dep
Copy Buttoncopy-buttonericts-uiComponentsFree2 deps
Expandable Dialogexpandable-dialogericts-uiComponentsFree1 dep
Expandable Panelexpandable-panelericts-uiComponentsFree2 deps
Expandable Segmented Tabsexpandable-segmented-tabsericts-uiComponentsFree1 dep

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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