Ai Card Glass
shadcn-glass-ui/ai-card-glassFreeBlock
AI-themed interactive card with feature list and generate button. * Designed for AI analysis, report generation, and ML-powered features. * * ## Features
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/ai-card-glass.jsonSource
1/**2 * AICardGlass Component3 *4 * AI-themed interactive card with feature list and generate button.5 * Designed for AI analysis, report generation, and ML-powered features.6 *7 * ## Features8 * - AI-themed Sparkles icon with accent color9 * - Customizable features list with checkmark icons (default: 3 items)10 * - Generate button with Zap icon for action trigger11 * - Estimated time display with Clock icon12 * - Hover lift effect via InteractiveCard primitive13 * - Responsive sizing (full-width on mobile, fixed width on desktop)14 * - Theme-aware accent colors for icons and title15 *16 * ## CSS Variables17 * - `--ai-card-bg` - Card background color18 * - `--ai-card-border` - Card border color19 * - `--ai-card-hover-glow` - Glow effect on hover20 * - `--text-accent` - Accent color for title and Sparkles icon21 * - `--text-secondary` - Description text color22 * - `--text-muted` - Feature list and time text color23 * - `--status-online` - Green checkmark color for features24 *25 * @example Basic usage26 * ```tsx27 * import { AICardGlass } from 'shadcn-glass-ui'28 *29 * function Dashboard() {30 * return (31 * <AICardGlass32 * onGenerate={() => console.log('Generating report...')}33 * />34 * )35 * }36 * ```37 *38 * @example Custom features and timing39 * ```tsx40 * <AICardGlass41 * features={[42 * 'Security analysis',43 * 'Performance metrics',44 * 'Optimization suggestions',45 * 'Dependency audit',46 * ]}47 * estimatedTime="~45 seconds"48 * onGenerate={handleGenerateReport}49 * />50 * ```51 *52 * @example With custom styling53 * ```tsx54 * <AICardGlass55 * className="lg:w-80"56 * onGenerate={() => setIsGenerating(true)}57 * />58 * ```59 *60 * @example Without generate handler61 * ```tsx62 * <AICardGlass63 * features={['Feature detection', 'Pattern recognition', 'Recommendations']}64 * />65 * // Button is still displayed but onClick is undefined66 * ```67 *68 * @accessibility69 * - ButtonGlass has built-in keyboard navigation (Enter/Space)70 * - Sparkles icon includes implicit decorative role71 * - High contrast icons (Sparkles, Check, Zap, Clock) for visual clarity72 * - Responsive text sizing (2xs on mobile, xs on desktop)73 * - Feature list uses semantic `<ul>` and `<li>` elements74 *75 * @since v1.0.076 */7778import { forwardRef } from 'react';79import { Sparkles, Check, Zap, Clock } from 'lucide-react';80import { cn } from '@/lib/utils';81import { ButtonGlass } from '../ui/button-glass';82import { InteractiveCard } from '../primitives';83import '@/glass-theme.css';8485/**86// … truncated
More from shadcn-glass-ui
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Career Stats Glasscareer-stats-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Career Stats Header Glasscareer-stats-header-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Circular Metric Glasscircular-metric-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Contribution Metrics Glasscontribution-metrics-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Flags Section Glassflags-section-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Header Branding Glassheader-branding-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Header Nav Glassheader-nav-glass | shadcn-glass-ui | Blocks | Free | no deps | |
| Metric Card Glassmetric-card-glass | shadcn-glass-ui | Blocks | Free | no deps |
