BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-glass-ui/expandable-header-glass

Expandable Header Glass

shadcn-glass-ui/expandable-header-glass
FreeComponent

Collapsible section header with animated chevron for accordion-style interfaces. * Provides accessible expand/collapse controls with theme-aware styling. * * ## Features

Install it

npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/expandable-header-glass.json

Source

components/glass/atomic/expandable-header-glass.tsxraw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/expandable-header-glass.json · first 6 KB
1/**
2 * ExpandableHeaderGlass Component
3 *
4 * Collapsible section header with animated chevron for accordion-style interfaces.
5 * Provides accessible expand/collapse controls with theme-aware styling.
6 *
7 * ## Features
8 * - **Chevron Animation:** Smooth rotation between ChevronUp/ChevronDown icons
9 * - **Optional Leading Icon:** Customizable icon with configurable color
10 * - **Controlled State:** Requires `expanded` prop for external state management
11 * - **Hover Effect:** Subtle background highlight on hover (`bg-white/5`)
12 * - **Theme-Aware:** Uses CSS variables for text and icon colors
13 * - **ARIA Compliance:** `aria-expanded` attribute for screen readers
14 * - **Keyboard Accessible:** Native button element with focus states
15 * - **Flexible Layout:** Full-width button with space-between alignment
16 * - **Atomic Component:** Extracted from FlagsSectionGlass for reusability
17 *
18 * ## CSS Variables
19 * Uses inline theme CSS variables (no component-specific variables):
20 * - `--text-primary` - Header title text color
21 * - `--text-muted` - Chevron icon color
22 * - `--text-accent` - Leading icon color (default, customizable via `iconColor`)
23 *
24 * @example Basic usage
25 * ```tsx
26 * import { ExpandableHeaderGlass } from 'shadcn-glass-ui'
27 * import { Flag } from 'lucide-react'
28 *
29 * function CollapsibleSection() {
30 * const [expanded, setExpanded] = useState(false)
31 *
32 * return (
33 * <>
34 * <ExpandableHeaderGlass
35 * title="Flags"
36 * icon={Flag}
37 * expanded={expanded}
38 * onToggle={() => setExpanded(!expanded)}
39 * />
40 * {expanded && <div>Section content...</div>}
41 * </>
42 * )
43 * }
44 * ```
45 *
46 * @example Without icon
47 * ```tsx
48 * <ExpandableHeaderGlass
49 * title="Additional Information"
50 * expanded={isExpanded}
51 * onToggle={handleToggle}
52 * />
53 * ```
54 *
55 * @example With custom icon color
56 * ```tsx
57 * import { AlertTriangle } from 'lucide-react'
58 *
59 * <ExpandableHeaderGlass
60 * title="Warnings"
61 * icon={AlertTriangle}
62 * iconColor="oklch(65% 0.19 29)" // Orange warning color
63 * expanded={warningsExpanded}
64 * onToggle={() => setWarningsExpanded(!warningsExpanded)}
65 * />
66 * ```
67 *
68 * @example With custom styling
69 * ```tsx
70 * <ExpandableHeaderGlass
71 * title="Advanced Settings"
72 * expanded={settingsExpanded}
73 * onToggle={toggleSettings}
74 * className="bg-white/10 border border-white/20"
75 * />
76 * ```
77 *
78 * @accessibility
79 * - Uses semantic `<button>` element for proper keyboard support
80// … truncated

Facts

Registry
shadcn-glass-ui
Type
registry:component
Access
Free
Files written
0
Licence
Apache-2.0
In the index
at or before 2026-08-11
Last confirmed
today

Go to the source

yhooi2.github.io artyhoo/shadcn-glass-ui-library on GitHub Raw registry item This item as JSON

More from shadcn-glass-ui

All 76 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alert Glassalert-glassshadcn-glass-uiComponentsFreeno deps
Animated Background Glassanimated-background-glassshadcn-glass-uiComponentsFreeno deps
Avatar Glassavatar-glassshadcn-glass-uiComponentsFreeno deps
Badge Glassbadge-glassshadcn-glass-uiComponentsFreeno deps
Base Progress Glassbase-progress-glassshadcn-glass-uiComponentsFreeno deps
Button Glassbutton-glassshadcn-glass-uiComponentsFreeno deps
Card Glasscard-glassshadcn-glass-uiComponentsFreeno deps
Checkbox Glasscheckbox-glassshadcn-glass-uiComponentsFreeno 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

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