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/popover-glass

Popover Glass

shadcn-glass-ui/popover-glass
FreeComponent

Floating glass-themed container for tooltips, dropdowns, and contextual overlays. * Provides compound and legacy APIs for maximum flexibility. * * ## Features

Install it

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

Source

components/glass/ui/popover-glass.tsxraw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/popover-glass.json · first 6 KB
1/**
2 * PopoverGlass Component
3 *
4 * Floating glass-themed container for tooltips, dropdowns, and contextual overlays.
5 * Provides compound and legacy APIs for maximum flexibility.
6 *
7 * ## Features
8 * - Theme-aware glassmorphism styling (glass/light/aurora)
9 * - Compound component API (PopoverGlass.Root, Trigger, Content, Anchor, Close)
10 * - Legacy API for backward compatibility
11 * - Arrow pointer with glass styling (optional)
12 * - 12 positioning options (4 sides × 3 alignments)
13 * - Smooth animations with fade-in effect
14 * - ESC key and click-outside to close
15 * - Focus trap for accessibility
16 * - Customizable width and padding via className
17 * - Portal rendering for z-index isolation
18 *
19 * ## Sub-Components
20 * - **PopoverGlass.Root** (or `PopoverGlass`) - Context provider with open/close state
21 * - **PopoverGlassTrigger** - Trigger element (supports asChild pattern)
22 * - **PopoverGlassAnchor** - Optional anchor for positioning
23 * - **PopoverGlassContent** - Content container with glass styling
24 * - **PopoverGlassLegacy** - Legacy wrapper API (backward compatible)
25 *
26 * ## CSS Variables
27 * Customize appearance via theme CSS variables:
28 * - `--popover-bg` - Background color (glass theme: `rgba(255,255,255,0.08)`)
29 * - `--popover-border` - Border color (glass theme: `rgba(255,255,255,0.15)`)
30 * - `--popover-shadow` - Box shadow with glow effect
31 * - `--popover-arrow-bg` - Arrow pointer background color
32 * - `--blur-md` - Backdrop blur amount (default: `16px`)
33 *
34 * @example Compound API (recommended)
35 * ```tsx
36 * import { PopoverGlass, PopoverGlassTrigger, PopoverGlassContent } from 'shadcn-glass-ui'
37 *
38 * <PopoverGlass>
39 * <PopoverGlassTrigger asChild>
40 * <ButtonGlass>Open Popover</ButtonGlass>
41 * </PopoverGlassTrigger>
42 * <PopoverGlassContent side="top">
43 * <div className="p-4">
44 * <h3 style={{ color: 'var(--text-primary)' }}>Title</h3>
45 * <p style={{ color: 'var(--text-secondary)' }}>Content</p>
46 * </div>
47 * </PopoverGlassContent>
48 * </PopoverGlass>
49 * ```
50 *
51 * @example Legacy API (backward compatible)
52 * ```tsx
53 * import { PopoverGlassLegacy } from 'shadcn-glass-ui'
54 *
55 * <PopoverGlassLegacy
56 * trigger={<ButtonGlass>Open</ButtonGlass>}
57 * side="top"
58 * >
59 * <div className="p-4">Content</div>
60 * </PopoverGlassLegacy>
61 * ```
62 *
63 * @example Controlled state
64 * ```tsx
65 * const [open, setOpen] = useState(false)
66 *
67 * <PopoverGlass open={open} onOpenChange={setOpen}>
68 * <PopoverGlassTrigger>Open</PopoverGlassTrigger>
69// … truncated

Facts

Registry
shadcn-glass-ui
Type
registry:ui
Access
Free
Files written
0
Licence
Apache-2.0
In the index
at or before 2026-08-12
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