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/insight-card-glass

Insight Card Glass

shadcn-glass-ui/insight-card-glass
FreeComponent

Versatile insight display component with emoji icons, text, and optional interactivity. * Supports 7 semantic variants with distinct styling and multiple display modes for dashboards, * analytics, and feedback interfaces. * * ## Features

Install it

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

Source

components/glass/atomic/insight-card-glass.tsxraw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/insight-card-glass.json · first 6 KB
1/**
2 * InsightCardGlass Component
3 *
4 * Versatile insight display component with emoji icons, text, and optional interactivity.
5 * Supports 7 semantic variants with distinct styling and multiple display modes for dashboards,
6 * analytics, and feedback interfaces.
7 *
8 * ## Features
9 * - **7 Semantic Variants:** default, tip, highlight, warning, stat, growth, decline
10 * - **2 Display Modes:** card (default) with glass surface, or inline for text integration
11 * - **Emoji Icons:** Default emojis per variant (customizable via `emoji` prop)
12 * - **Clickable Mode:** Optional `onClick` handler with hover glow effect
13 * - **Arrow Indicator:** Optional chevron icon for clickable insights
14 * - **Fade-In Animation:** Optional entrance animation via `animated` prop
15 * - **Detail Text:** Optional secondary text line for additional context
16 * - **Keyboard Accessible:** Space/Enter key support when clickable
17 * - **Theme-Aware:** Variant-specific border colors and glow effects
18 * - **CVA Variants:** Type-safe variant system with automatic styling
19 *
20 * ## CSS Variables
21 * Defined per variant in `insight-card-glass-variants.ts`:
22 *
23 * ### Shared Variables
24 * - `--glass-bg-subtle` - Card background (non-inline mode)
25 * - `--glass-bg` - Hover background for clickable cards
26 * - `--text-primary` - Main text color
27 * - `--text-secondary` - Inline text color
28 * - `--text-muted` - Detail text and arrow icon color
29 *
30 * ### Variant-Specific Variables
31 * Each variant has unique border and glow variables:
32 *
33 * - **default:** `--glass-border`, `--glow-primary`
34 * - **tip:** `--alert-default-border`, `--glow-secondary`
35 * - **highlight:** `--alert-success-border`, `--glow-success`
36 * - **warning:** `--alert-warning-border`, `--glow-warning`
37 * - **stat:** `--glass-border`, no glow
38 * - **growth:** `--alert-success-border`, `--glow-success`
39 * - **decline:** `--alert-destructive-border`, `--glow-error`
40 *
41 * @example Basic usage
42 * ```tsx
43 * import { InsightCardGlass } from 'shadcn-glass-ui'
44 *
45 * function Dashboard() {
46 * return (
47 * <InsightCardGlass
48 * variant="tip"
49 * text="Your code quality has improved this month"
50 * detail="Based on 45 merged PRs"
51 * />
52 * )
53 * }
54 * ```
55 *
56 * @example Clickable insight with arrow
57 * ```tsx
58 * <InsightCardGlass
59 * variant="highlight"
60 * text="New achievements unlocked!"
61 * detail="View all 3 achievements"
62 * onClick={() => navigate('/achievements')}
63 * showArrow={true}
64 * />
65 * ```
66 *
67// … truncated

Facts

Registry
shadcn-glass-ui
Type
registry:component
Access
Free
Files written
0
Licence
Apache-2.0
First indexed
2026-08-02
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
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex