ShadcnUI Vaults

Back to Blocks

Feature Cards with Badges

Unknown Block

UnknownComponent

Feature Cards with Badges

Interactive feature cards with badges, icons, and call-to-action buttons for enhanced engagement.

Preview

Full width desktop view

Code

feature-3.tsx
1"use client";
2
3import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
4import { Button } from "@/components/ui/button";
5import { Badge } from "@/components/ui/badge";
6import { Code, Palette, Zap, Shield, Users, BarChart } from "lucide-react";
7
8export function FeatureBlock3() {
9  const features = [
10    {
11      icon: Code,
12      title: "Developer Tools",
13      description:
14        "Advanced code editor with syntax highlighting, auto-completion, and debugging tools.",
15      badge: "Popular",
16      badgeVariant: "default" as const,
17    },
18    {
19      icon: Palette,
20      title: "Design System",
21      description:
22        "Pre-built components and design tokens for consistent, beautiful user interfaces.",
23      badge: "New",
24      badgeVariant: "secondary" as const,
25    },
26    {
27      icon: Zap,
28      title: "Performance",
29      description:
30        "Optimized builds with code splitting, lazy loading, and automatic optimization.",
31      badge: "Fast",
32      badgeVariant: "outline" as const,
33    },
34    {
35      icon: Shield,
36      title: "Security",
37      description:
38        "Built-in security features including HTTPS, CSRF protection, and secure headers.",
39      badge: "Secure",
40      badgeVariant: "destructive" as const,
41    },
42    {
43      icon: Users,
44      title: "Collaboration",
45      description:
46        "Real-time collaboration tools for teams with role-based access control.",
47      badge: "Team",
48      badgeVariant: "secondary" as const,
49    },
50    {
51      icon: BarChart,
52      title: "Analytics",
53      description:
54        "Comprehensive analytics and monitoring with custom dashboards and alerts.",
55      badge: "Insights",
56      badgeVariant: "outline" as const,
57    },
58  ];
59
60  return (
61    <section className="w-full py-20 md:py-32">
62      <div className="container mx-auto px-4 md:px-6">
63        <div className="text-center space-y-4 mb-16">
64          <h2 className="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl">
65            Powerful Features for Modern Development
66          </h2>
67          <p className="mx-auto max-w-2xl text-lg text-muted-foreground">
68            Everything you need to build, deploy, and scale your applications
69            with confidence and ease.
70          </p>
71        </div>
72
73        <div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
74          {features.map((feature, index) => (
75            <Card
76              key={index}
77              className="group hover:shadow-lg transition-all duration-300 border-2 hover:border-primary/20"
78            >
79              <CardHeader className="space-y-4">
80                <div className="flex items-center justify-between">
81                  <div className="p-3 bg-primary/10 rounded-full group-hover:bg-primary/20 transition-colors">
82                    <feature.icon className="h-6 w-6 text-primary" />
83                  </div>
84                  <Badge variant={feature.badgeVariant}>{feature.badge}</Badge>
85                </div>
86                <CardTitle className="text-xl">{feature.title}</CardTitle>
87              </CardHeader>
88              <CardContent className="space-y-4">
89                <p className="text-muted-foreground">{feature.description}</p>
90                <Button
91                  variant="ghost"
92                  size="sm"
93                  className="w-full group-hover:bg-primary/10"
94                >
95                  Learn More
96                </Button>
97              </CardContent>
98            </Card>
99          ))}
100        </div>
101
102        <div className="text-center mt-16">
103          <Button size="lg" className="gap-2">
104            Explore All Features
105          </Button>
106        </div>
107      </div>
108    </section>
109  );
110}

Dependencies

External Libraries

lucide-react

Shadcn/UI Components

badgebuttoncard

LICENSE

MIT License

Copyright (c) 2025 Aldhaneka

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Shadcn Vaults Project (CC BY-NC 4.0 with Internal Use Exception)

All user-submitted components in the '/blocks' directory are licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0),
with the following clarification and exception:

You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material

Under these conditions:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- NonCommercial — You may NOT use the material for commercial redistribution, resale, or monetization.

🚫 You MAY NOT:
- Sell or redistribute the components individually or as part of a product (e.g. a UI kit, template marketplace, SaaS component library)
- Offer the components or derivative works in any paid tool, theme pack, or design system

✅ You MAY:
- Use the components in internal company tools, dashboards, or applications that are not sold as products
- Remix or adapt components for private or enterprise projects
- Use them in open-source non-commercial projects

This license encourages sharing, learning, and internal innovation — but prohibits using these components as a basis for monetized products.

Full license text: https://creativecommons.org/licenses/by-nc/4.0/

By submitting a component, contributors agree to these terms.

Contributors

Ramiro Godoy@milogodoy

Review Form Block

Aldhaneka@Aldhanekaa

Project Creator

For questions about licensing, please contact the project maintainers.