
A narrow heading column on the left, with four value titles and body paragraphs in a two-column grid beside it.
@shadcnblocks
block/feature42/feature42.tsx
import {
Blocks,
ChartLine,
Globe,
Layers,
Lock,
Palette,
Rocket,
Settings,
Shield,
Sparkles,
Workflow,
Zap,
} from "lucide-react";
import { cn } from "cn";
interface FeatureIconListItem {
title: string;
description: string;
icon?: React.ReactNode;
href?: string;
}
interface FeatureIconListProps {
heading: string;
features?: FeatureIconListItem[];
className?: string;
}
interface Feature42Props extends FeatureIconListProps {}
type Props = Partial<Feature42Props>;
const defaultProps: Feature42Props = {
heading: "Build faster with production ready features",
features: [
{
icon: <Zap className="size-5" />,
title: "Full Source Code",
description:
"Every block ships as plain React you own. No runtime dependency, no SDK lock-in, just copy and customize.",
},
{
icon: <Palette className="size-5" />,
title: "Responsive Design",
description:
"Every block adapts seamlessly from mobile to desktop with Tailwind's mobile-first utility classes.",
},
{
icon: <Shield className="size-5" />,
title: "Accessibility & Usability",
description:
"Built on Radix UI primitives with proper ARIA attributes, keyboard navigation, and focus management.",
},
{
icon: <Settings className="size-5" />,
title: "TypeScript Native",
description:
"Fully typed props and interfaces so your editor catches issues before they reach production.",
},
{
icon: <Layers className="size-5" />,
title: "Customizable",
description:
"Override any prop, swap icons, adjust spacing — every block is designed to be extended, not locked down.",
},
{
icon: <Rocket className="size-5" />,
title: "Production Ready",
description:
"Battle-tested in real projects. No placeholder hacks, no lorem ipsum — clean code you can ship today.",
},
{
icon: <Blocks className="size-5" />,
title: "Registry Compatible",
description:
"Install blocks directly with the shadcn CLI. Dependencies and registry items are listed in every block's MDX.",
},
{
icon: <Globe className="size-5" />,
title: "Framework Agnostic",
description:
"Plain ESM + React that works with Next.js, Vite, Remix, and Astro without any Shadcnblocks SDK.",
},
{
icon: <ChartLine className="size-5" />,
title: "Consistent Spacing",
description:
"Shared section padding, container widths, and gap scales so blocks stack into cohesive pages.",
},
{
icon: <Sparkles className="size-5" />,
title: "Theme Tokens",
description:
"All colors come from your shadcn/ui theme — foreground, muted, primary, card — no hardcoded values.",
},
{
icon: <Workflow className="size-5" />,
title: "Copy Paste Workflow",
description:
"Browse the explorer, preview with your theme, then copy the code directly into your project.",
},
{
icon: <Lock className="size-5" />,
title: "Open Source",
description:
"MIT-licensed source code you own completely. Fork it, modify it, sell products built with it.",
},
],
};
const MAX_FEATURES = 4;
const Feature42 = (props: Props) => {
const { heading, features, className } = {
...defaultProps,
...props,
};
const items = (features ?? []).slice(0, MAX_FEATURES);
return (
<section className={cn("py-32", className)}>
<div className="container">
<div className="flex flex-col gap-8 lg:flex-row lg:items-start lg:gap-20">
<h2 className="max-w-sm shrink-0 text-3xl font-medium tracking-tight">
{heading}
</h2>
<div className="grid flex-1 gap-8 sm:grid-cols-2 lg:gap-x-16">
{items.map((feature, i) => (
<div key={i}>
<h3 className="mb-2 text-lg font-medium">{feature.title}</h3>
<p className="text-muted-foreground">{feature.description}</p>
</div>
))}
</div>
</div>
</div>
</section>
);
};
export { Feature42 };





























