# Interactive Icon Showcase

> An interactive panel where hovering an icon updates the description beside it. Invites visitors to explore features at their own pace and stay engaged.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/marketing-icon-sections-interactive-icon-showcase).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-icon-sections-interactive-icon-showcase
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-icon-sections-interactive-icon-showcase-light-1ec9e8716dee8425.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-icon-sections-interactive-icon-showcase.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/marketing-icon-sections-interactive-icon-showcase.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `class-variance-authority`, `lucide-react`, `radix-ui`

## Files

### `components/blocks/marketing/icon-sections/interactive-icon-showcase.tsx`

```tsx
import { useState } from 'react';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Card, CardContent } from '@/components/ui/card';
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from '@/components/ui/collapsible';
import { cn } from '@/lib/utils';
import {
  ArrowRight,
  ChevronDown,
  ChevronRight,
  CheckCircle2,
  Sparkles,
  Rocket,
  Leaf,
  BarChart,
  ShieldCheck,
  Globe,
  Zap,
  Laptop,
  Smartphone,
  TabletSmartphone,
  Clock,
  LockKeyhole,
  Search,
  RefreshCcw,
  HeartHandshake,
  CreditCard,
  Radar,
  Network,
} from 'lucide-react';

interface IconFeature {
  id: string;
  icon: React.ReactNode;
  iconColor: string;
  title: string;
  description: string;
  benefits: string[];
  expanded?: boolean;
}

export default function InteractiveIconShowcase() {
  const [features, setFeatures] = useState<IconFeature[]>([
    {
      id: 'automation',
      icon: <Sparkles className="h-8 w-8" />,
      iconColor: 'bg-amber-100 text-amber-600',
      title: 'Smart Automation',
      description:
        'Automate repetitive tasks with intelligent workflows that adapt to your business processes.',
      benefits: [
        'Save up to 15 hours per week on manual tasks',
        'Reduce errors by 75% with automated validation',
        'Create custom workflows without coding',
        'Connect to 300+ external services and APIs',
      ],
      expanded: false,
    },
    {
      id: 'performance',
      icon: <Rocket className="h-8 w-8" />,
      iconColor: 'bg-blue-100 text-blue-600',
      title: 'Blazing Performance',
      description:
        'Experience unmatched speed with our optimized architecture and global edge network.',
      benefits: [
        '99.9% uptime guarantee with redundant systems',
        'Average page load under 1.2 seconds globally',
        'Automatic content optimization and caching',
        'Real-time monitoring and auto-scaling',
      ],
      expanded: false,
    },
    {
      id: 'sustainability',
      icon: <Leaf className="h-8 w-8" />,
      iconColor: 'bg-green-100 text-green-600',
      title: 'Eco-Friendly Cloud',
      description:
        'Our carbon-neutral infrastructure is powered by 100% renewable energy sources.',
      benefits: [
        'Reduce your digital carbon footprint by 40%',
        'Energy-efficient data centers worldwide',
        'Carbon offset programs for all operations',
        'Transparent sustainability reporting',
      ],
      expanded: false,
    },
    {
      id: 'analytics',
      icon: <BarChart className="h-8 w-8" />,
      iconColor: 'bg-violet-100 text-violet-600',
      title: 'Advanced Analytics',
      description:
        'Gain deep insights with our comprehensive analytics and reporting dashboard.',
      benefits: [
        'Real-time data visualization and reporting',
        'Customizable KPI tracking and alerts',
        'AI-powered pattern recognition and forecasting',
        'Export capabilities in multiple formats',
      ],
      expanded: false,
    },
    {
      id: 'security',
      icon: <ShieldCheck className="h-8 w-8" />,
      iconColor: 'bg-red-100 text-red-600',
      title: 'Enterprise Security',
      description:
        'Protect your data with military-grade encryption and advanced security protocols.',
      benefits: [
        'SOC 2 Type II, GDPR, and HIPAA compliant',
        'Multi-factor authentication and SSO integration',
        'End-to-end encryption for all data',
        'Regular penetration testing and security audits',
      ],
      expanded: false,
    },
    {
      id: 'global',
      icon: <Globe className="h-8 w-8" />,
      iconColor: 'bg-cyan-100 text-cyan-600',
      title: 'Global Reach',
      description:
        'Connect with users worldwide through our distributed infrastructure and localization tools.',
      benefits: [
        'Content delivery in 200+ countries and territories',
        'Automatic language detection and translation',
        'Regional compliance management',
        'Local payment methods for global commerce',
      ],
      expanded: false,
    },
    {
      id: 'speed',
      icon: <Zap className="h-8 w-8" />,
      iconColor: 'bg-yellow-100 text-yellow-600',
      title: 'Instant Deployment',
      description:
        'Deploy changes instantly with zero downtime using our continuous delivery pipeline.',
      benefits: [
        'One-click deployments to any environment',
        'Automated testing before deployment',
        'Instant rollback capabilities',
        'Canary and blue/green deployment options',
      ],
      expanded: false,
    },
    {
      id: 'responsive',
      icon: <Laptop className="h-8 w-8" />,
      iconColor: 'bg-indigo-100 text-indigo-600',
      title: 'Fully Responsive',
      description:
        'Deliver perfect experiences across all devices with our adaptive design system.',
      benefits: [
        'Optimized layouts for desktop, tablet, and mobile',
        'Accessibility compliant (WCAG 2.1 AA)',
        'Cross-browser compatibility',
        'Progressive web app capabilities',
      ],
      expanded: false,
    },
    {
      id: 'mobile',
      icon: <Smartphone className="h-8 w-8" />,
      iconColor: 'bg-pink-100 text-pink-600',
      title: 'Mobile-First Design',
      description:
        'Create exceptional mobile experiences with our touch-optimized components.',
      benefits: [
        'Native-like performance on mobile devices',
        'Optimized for touch and gesture interactions',
        'Offline capabilities and local storage',
        'Push notification support',
      ],
      expanded: false,
    },
    {
      id: 'multiplatform',
      icon: <TabletSmartphone className="h-8 w-8" />,
      iconColor: 'bg-orange-100 text-orange-600',
      title: 'Cross-Platform Support',
      description:
        'Build once and deploy everywhere with our unified development platform.',
      benefits: [
        'Single codebase for iOS, Android, and web',
        'Native API access on all platforms',
        'Consistent UI across operating systems',
        'Shared business logic with platform-specific UIs',
      ],
      expanded: false,
    },
    {
      id: 'realtime',
      icon: <Clock className="h-8 w-8" />,
      iconColor: 'bg-emerald-100 text-emerald-600',
      title: 'Real-Time Updates',
      description:
        'Keep users in sync with instant updates and live collaborative features.',
      benefits: [
        'WebSocket-based real-time data synchronization',
        'Collaborative editing with conflict resolution',
        'Live user presence indicators',
        'Event-driven architecture for immediate reactions',
      ],
      expanded: false,
    },
    {
      id: 'privacy',
      icon: <LockKeyhole className="h-8 w-8" />,
      iconColor: 'bg-slate-100 text-slate-600',
      title: 'Privacy Controls',
      description:
        'Give users complete control over their data with granular privacy settings.',
      benefits: [
        'User consent management system',
        'Data anonymization and pseudonymization',
        'Self-service data access and deletion',
        'Privacy by design architecture',
      ],
      expanded: false,
    },
    {
      id: 'search',
      icon: <Search className="h-8 w-8" />,
      iconColor: 'bg-purple-100 text-purple-600',
      title: 'Intelligent Search',
      description:
        'Find anything instantly with our powerful search engine and AI-powered recommendations.',
      benefits: [
        'Full-text search with typo tolerance',
        'Natural language processing capabilities',
        'Personalized search results based on user behavior',
        'Faceted search with dynamic filtering',
      ],
      expanded: false,
    },
    {
      id: 'sync',
      icon: <RefreshCcw className="h-8 w-8" />,
      iconColor: 'bg-teal-100 text-teal-600',
      title: 'Cross-Device Sync',
      description:
        'Seamlessly transition between devices with automatic data synchronization.',
      benefits: [
        'Real-time data sync across all devices',
        'Offline-first architecture with conflict resolution',
        'Bandwidth-efficient delta syncing',
        'Selective sync for large datasets',
      ],
      expanded: false,
    },
    {
      id: 'support',
      icon: <HeartHandshake className="h-8 w-8" />,
      iconColor: 'bg-rose-100 text-rose-600',
      title: 'Premium Support',
      description:
        'Get help when you need it from our dedicated support team and extensive knowledge base.',
      benefits: [
        '24/7 support via chat, email, and phone',
        'Dedicated account managers for enterprise plans',
        'Comprehensive documentation and tutorials',
        'Regular training sessions and webinars',
      ],
      expanded: false,
    },
    {
      id: 'payments',
      icon: <CreditCard className="h-8 w-8" />,
      iconColor: 'bg-neutral-100 text-neutral-600',
      title: 'Secure Payments',
      description:
        'Process payments securely with our PCI-compliant payment processing system.',
      benefits: [
        'Support for 50+ payment methods globally',
        'Anti-fraud detection and prevention',
        'Subscription billing and management',
        'Seamless checkout experience with one-click payments',
      ],
      expanded: false,
    },
    {
      id: 'monitoring',
      icon: <Radar className="h-8 w-8" />,
      iconColor: 'bg-fuchsia-100 text-fuchsia-600',
      title: 'Proactive Monitoring',
      description:
        'Stay ahead of issues with real-time monitoring and predictive maintenance.',
      benefits: [
        'Real-time performance and error monitoring',
        'Anomaly detection and predictive alerts',
        'Detailed logging and diagnostic tools',
        'Automated incident response workflows',
      ],
      expanded: false,
    },
    {
      id: 'integrations',
      icon: <Network className="h-8 w-8" />,
      iconColor: 'bg-sky-100 text-sky-600',
      title: 'Seamless Integrations',
      description:
        'Connect with your favorite tools through our extensive integration ecosystem.',
      benefits: [
        'One-click integration with popular platforms',
        'Custom webhook support for any service',
        'Bi-directional data synchronization',
        'No-code integration builder',
      ],
      expanded: false,
    },
  ]);

  const handleFeatureToggle = (id: string) => {
    setFeatures(
      features.map((feature) =>
        feature.id === id
          ? { ...feature, expanded: !feature.expanded }
          : feature
      )
    );
  };

  return (
    <section className="bg-background w-full py-12 md:py-24">
      <div className="container mx-auto px-4 md:px-6 2xl:max-w-[1400px]">
        <div className="mb-8 flex flex-col items-center justify-center space-y-4 text-center">
          <Badge className="px-3.5 py-1.5">Features</Badge>
          <h2 className="max-w-[800px] text-3xl font-bold tracking-tighter sm:text-4xl">
            Everything You Need to Succeed
          </h2>
          <p className="text-muted-foreground max-w-[700px] md:text-lg">
            Explore our comprehensive suite of features designed to help your
            business thrive
          </p>
        </div>

        <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3">
          {features.map((feature) => (
            <Collapsible
              key={feature.id}
              open={feature.expanded}
              onOpenChange={() => handleFeatureToggle(feature.id)}
              className="w-full"
            >
              <Card
                className={cn(
                  'overflow-hidden p-0 transition-all duration-200',
                  feature.expanded ? 'shadow-md' : 'hover:shadow-sm'
                )}
              >
                <CollapsibleTrigger className="w-full">
                  <CardContent className="p-6">
                    <div className="flex items-center justify-between">
                      <div className="flex items-center gap-4">
                        <div
                          className={cn(
                            'flex h-12 w-12 items-center justify-center rounded-full',
                            feature.iconColor
                          )}
                        >
                          {feature.icon}
                        </div>
                        <div className="text-left">
                          <h3 className="text-lg font-medium">
                            {feature.title}
                          </h3>
                          <p className="text-muted-foreground line-clamp-1 text-sm">
                            {feature.description}
                          </p>
                        </div>
                      </div>
                      <ChevronRight
                        className={cn(
                          'text-muted-foreground h-5 w-5 transition-transform duration-200',
                          feature.expanded && 'rotate-90'
                        )}
                      />
                    </div>
                  </CardContent>
                </CollapsibleTrigger>

                <CollapsibleContent>
                  <div className="px-6 pt-0 pb-6">
                    <div className="border-t pt-4">
                      <p className="mb-3 text-sm">{feature.description}</p>
                      <h4 className="mb-2 text-sm font-medium">
                        Key Benefits:
                      </h4>
                      <ul className="space-y-2">
                        {feature.benefits.map((benefit, index) => (
                          <li
                            key={index}
                            className="flex items-start gap-2 text-sm"
                          >
                            <CheckCircle2 className="mt-0.5 h-4 w-4 shrink-0 text-green-500" />
                            <span>{benefit}</span>
                          </li>
                        ))}
                      </ul>
                    </div>
                  </div>
                </CollapsibleContent>
              </Card>
            </Collapsible>
          ))}
        </div>

        <div className="mt-10 flex flex-col justify-center gap-4 sm:flex-row">
          <Button variant="outline" size="lg" className="group" asChild>
            <a href="#">
              Compare all features
              <ChevronDown className="ml-2 h-4 w-4" />
            </a>
          </Button>

          <Button size="lg" className="group" asChild>
            <a href="#">
              Start your free trial
              <ArrowRight className="ml-2 h-4 w-4 transition-transform group-hover:translate-x-1" />
            </a>
          </Button>
        </div>
      </div>
    </section>
  );
}
```

### `components/ui/badge.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const badgeVariants = cva(
  "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
        secondary:
          "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
        destructive:
          "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
        outline:
          "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
        ghost:
          "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
        link: "text-primary underline-offset-4 hover:underline",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

function Badge({
  className,
  variant = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"span"> &
  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "span"

  return (
    <Comp
      data-slot="badge"
      data-variant={variant}
      className={cn(badgeVariants({ variant }), className)}
      {...props}
    />
  )
}

export { Badge, badgeVariants }
```

### `components/ui/button.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
  "group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground hover:bg-primary/80",
        outline:
          "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
        secondary:
          "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
        ghost:
          "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
        destructive:
          "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
        link: "text-primary underline-offset-4 hover:underline",
      },
      size: {
        default:
          "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
        sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
        lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        icon: "size-9",
        "icon-xs":
          "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
        "icon-sm":
          "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
        "icon-lg": "size-10",
      },
    },
    defaultVariants: {
      variant: "default",
      size: "default",
    },
  }
)

function Button({
  className,
  variant = "default",
  size = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"button"> &
  VariantProps<typeof buttonVariants> & {
    asChild?: boolean
  }) {
  const Comp = asChild ? Slot.Root : "button"

  return (
    <Comp
      data-slot="button"
      data-variant={variant}
      data-size={size}
      className={cn(buttonVariants({ variant, size, className }))}
      {...props}
    />
  )
}

export { Button, buttonVariants }
```

### `components/ui/card.tsx`

```tsx
import * as React from "react"

import { cn } from "@/lib/utils"

function Card({
  className,
  size = "default",
  ...props
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
  return (
    <div
      data-slot="card"
      data-size={size}
      className={cn(
        "group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
        className
      )}
      {...props}
    />
  )
}

function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-header"
      className={cn(
        "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4",
        className
      )}
      {...props}
    />
  )
}

function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-title"
      className={cn(
        "font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
        className
      )}
      {...props}
    />
  )
}

function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-description"
      className={cn("text-sm text-muted-foreground", className)}
      {...props}
    />
  )
}

function CardAction({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-action"
      className={cn(
        "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
        className
      )}
      {...props}
    />
  )
}

function CardContent({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-content"
      className={cn("px-6 group-data-[size=sm]/card:px-4", className)}
      {...props}
    />
  )
}

function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-footer"
      className={cn(
        "flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
        className
      )}
      {...props}
    />
  )
}

export {
  Card,
  CardHeader,
  CardFooter,
  CardTitle,
  CardAction,
  CardDescription,
  CardContent,
}
```

### `components/ui/collapsible.tsx`

```tsx
"use client"

import { Collapsible as CollapsiblePrimitive } from "radix-ui"

function Collapsible({
  ...props
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
  return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
}

function CollapsibleTrigger({
  ...props
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {
  return (
    <CollapsiblePrimitive.CollapsibleTrigger
      data-slot="collapsible-trigger"
      {...props}
    />
  )
}

function CollapsibleContent({
  ...props
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {
  return (
    <CollapsiblePrimitive.CollapsibleContent
      data-slot="collapsible-content"
      {...props}
    />
  )
}

export { Collapsible, CollapsibleTrigger, CollapsibleContent }
```
