Please use Desktop to view and interact with components
Blocks500mseaseInOut
Feature Cards Grid
Three feature cards with icons, hover effects, and glassmorphism styling
featurescardsgridiconshoverglassmorphismshadcn
Useto navigate between components
Preview
Everything you need
Powerful features that help you build better products faster
Lightning Fast
Built for speed with optimized performance and instant loading times.
Secure by Default
Enterprise-grade security with built-in protection and compliance.
Beautiful Design
Pixel-perfect interfaces that users love to interact with.
This component requires shadcn/ui
This component uses shadcn/ui components. Make sure you have shadcn/ui set up in your project.
- Install shadcn/ui:
npx shadcn-ui@latest init - Install required components based on the imports in the code (e.g.,
npx shadcn-ui@latest add button) - Ensure your
tailwind.config.tsandglobals.cssare configured as per shadcn/ui documentation
Code
TypeScript + React
'use client'
import { Card } from '@/components/ui/card'
import { Zap, Shield, Sparkles } from 'lucide-react'
export function FeatureCardsBlock() {
const features = [
{
icon: Zap,
title: 'Lightning Fast',
description:
"Built for speed with optimized performance and instant loading times.",
},
{
icon: Shield,
title: 'Secure by Default',
description:
"Enterprise-grade security with built-in protection and compliance.",
},
{
icon: Sparkles,
title: 'Beautiful Design',
description:
"Pixel-perfect interfaces that users love to interact with.",
},
];
return (
<section className="px-6 py-32">
<div className="mx-auto max-w-7xl">
<div className="mb-20 space-y-5 text-center">
<h2 className="text-5xl font-bold tracking-tight md:text-6xl">
Everything you need
</h2>
<p className="mx-auto max-w-2xl text-lg leading-relaxed text-muted-foreground md:text-xl">
Powerful features that help you build better products faster
</p>
</div>
<div className="grid gap-8 md:grid-cols-3">
{features.map((feature, index) => (
<Card
key={index}
className="group cursor-pointer border border-border/50 bg-background/50 p-10 backdrop-blur-xl transition-all duration-500 hover:border-border"
>
<div className="mb-8 flex h-14 w-14 items-center justify-center rounded-2xl bg-foreground/[0.04] transition-all duration-300 group-hover:scale-110 group-hover:bg-foreground/[0.08]">
<feature.icon className="h-6 w-6" />
</div>
<h3 className="mb-4 text-2xl font-semibold tracking-tight">
{feature.title}
</h3>
<p className="text-base leading-relaxed text-muted-foreground">
{feature.description}
</p>
</Card>
))}
</div>
</div>
</section>
);
}
How to Use
- 1Install Framer Motion:
npm install framer-motion - 2Set up shadcn/ui: Install shadcn/ui components used in this code. Check the imports in the code above and install the required components (e.g.,
npx shadcn-ui@latest add button card) - 3Copy the code from above
- 4Paste it into your project and customize as needed
- 5Colors are customizable via Tailwind CSS classes. The default theme uses dark mode colors defined in your globals.css file