# Grid Hover

> A feature grid where each cell reveals more copy and a glow on hover. Keeps the section compact at rest, then rewards visitors who explore each capability.

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-feature-sections-grid-hover).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-feature-sections-grid-hover
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-feature-sections-grid-hover-light-fa64143badf19985.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-feature-sections-grid-hover.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-feature-sections-grid-hover.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: `lucide-react`

## Files

### `components/blocks/marketing/feature-sections/grid-hover.tsx`

```tsx
import { Card, CardContent } from '@/components/ui/card';
import { cn } from '@/lib/utils';
import {
  Boxes,
  CircuitBoard,
  Cpu,
  FileCode2,
  FlaskConical,
  GitBranch,
  Globe2,
  Layers,
  LayoutGrid,
  Lightbulb,
  Network,
  Puzzle,
} from 'lucide-react';

const features = [
  {
    icon: Cpu,
    title: 'AI-Powered',
    description:
      'Advanced machine learning algorithms to automate and optimize your workflows.',
    color: 'bg-blue-500/10 text-blue-500',
  },
  {
    icon: Globe2,
    title: 'Global CDN',
    description:
      'Lightning-fast content delivery across multiple geographic locations.',
    color: 'bg-green-500/10 text-green-500',
  },
  {
    icon: CircuitBoard,
    title: 'Edge Computing',
    description: 'Process data closer to the source for improved performance.',
    color: 'bg-purple-500/10 text-purple-500',
  },
  {
    icon: Network,
    title: 'Microservices',
    description:
      'Build scalable applications with independent service architecture.',
    color: 'bg-orange-500/10 text-orange-500',
  },
  {
    icon: FileCode2,
    title: 'API Gateway',
    description:
      'Centralized API management with built-in security and monitoring.',
    color: 'bg-pink-500/10 text-pink-500',
  },
  {
    icon: Layers,
    title: 'Data Storage',
    description: 'Flexible storage solutions for all your application needs.',
    color: 'bg-yellow-500/10 text-yellow-500',
  },
  {
    icon: GitBranch,
    title: 'Version Control',
    description: 'Built-in version control system for code and assets.',
    color: 'bg-cyan-500/10 text-cyan-500',
  },
  {
    icon: FlaskConical,
    title: 'Testing Tools',
    description: 'Comprehensive testing suite for quality assurance.',
    color: 'bg-indigo-500/10 text-indigo-500',
  },
  {
    icon: Puzzle,
    title: 'Extensible',
    description:
      'Easily extend functionality with custom plugins and integrations.',
    color: 'bg-rose-500/10 text-rose-500',
  },
  {
    icon: Lightbulb,
    title: 'Smart Insights',
    description: 'Intelligent analytics and recommendations for optimization.',
    color: 'bg-emerald-500/10 text-emerald-500',
  },
  {
    icon: LayoutGrid,
    title: 'Customizable UI',
    description: 'Flexible interface components that adapt to your needs.',
    color: 'bg-violet-500/10 text-violet-500',
  },
  {
    icon: Boxes,
    title: 'Resource Management',
    description: 'Efficient allocation and monitoring of system resources.',
    color: 'bg-amber-500/10 text-amber-500',
  },
];

export default function FeatureSectionGridHover() {
  return (
    <section className="container mx-auto space-y-8 px-4 py-24 md:px-6 2xl:max-w-[1400px]">
      <div className="space-y-4 text-center">
        <h2 className="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl">
          Powerful features for powerful applications
        </h2>
        <p className="text-muted-foreground mx-auto max-w-[700px] md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed">
          Everything you need to build modern applications at scale. Built for
          developers, designed for growth.
        </p>
      </div>

      <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
        {features.map((feature) => (
          <Card
            key={feature.title}
            className="group p-0 transition-all duration-200 hover:-translate-y-1 hover:shadow-lg"
          >
            <CardContent className="space-y-4 p-6">
              <div
                className={cn(
                  'flex h-12 w-12 items-center justify-center rounded-lg',
                  feature.color
                )}
              >
                <feature.icon className="h-6 w-6" />
              </div>
              <div className="space-y-2">
                <h3 className="group-hover:text-primary font-bold transition-colors">
                  {feature.title}
                </h3>
                <p className="text-muted-foreground text-sm">
                  {feature.description}
                </p>
              </div>
            </CardContent>
          </Card>
        ))}
      </div>
    </section>
  );
}
```

### `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,
}
```
