Componentdata0.56 KB gzipZero dependencies
FeatureGrid
Feature tiles with icon slot, stamp-on-hover icons, darkening borders and staggered entrance.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add feature-gridOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { FeatureGrid } from "@/components/ui/feature-grid"; <FeatureGrid items={[{ id: "1", title: "Fast", description: "Instant renders." }]} />Source code
feature-grid.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxfeature-grid.tsx43 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface FeatureItem { id: string; icon?: React.ReactNode; title: string; description: string;} export interface FeatureGridProps extends React.HTMLAttributes<HTMLElement> { items: FeatureItem[]; columns?: 2 | 3; className?: string;} export function FeatureGrid({ items = [], columns = 2, className, ...props }: FeatureGridProps) { return (Props
| Prop | Type | Description |
|---|---|---|
| items | FeatureItem[] | Structured list of items rendered by the component. (Default: []) |
| columns | 2 | 3 | Column definitions describing headers, cell keys, and sorting. (Default: 2) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |