Brickslab.

@brickslab/ui-web

Feature card component for bento grids with optional icon, description, CTA, and hover effects. Renders as link or div based on props. Perfect for showcasing features.

Aperçu

No hover effect (default)

Simple Card

Just a title and description

No Description

With hover="lift" effect

Lift Effect

Hovers up smoothly

With CTA

Interactive card

Explore

With hover="glow" effect

Glow Effect

Emits subtle glow

Linked Card

Click to navigate

Visit

Props Table

PropTypeDéfautRequisDescription
namestringCard title/heading.
descriptionstringOptional extended description text.
IconReact.ElementTypeOptional icon component to display at the top.
hrefstringIf provided, renders as a link element with this href.
ctastringCall-to-action text (e.g., 'Learn more'). Shows arrow suffix.
hoverEffect"lift" | "glow" | "none""none"Hover animation: "lift" (translateY), "glow" (box-shadow), "none" (no animation).
interactivebooleanfalseEnable interactive cursor feedback.
classNamestringAdditional CSS class for custom styling.

Usage

tsx
import { BentoCard } from "@brickslab/ui-web";
import { FiCode } from "react-icons/fi";

// Basic card
<BentoCard name="Development" description="Build faster" />

// With icon and link
<BentoCard
  name="Documentation"
  description="Learn the basics"
  Icon={FiCode}
  href="/docs"
  cta="Read"
/>

// With hover effect
<BentoCard
  name="Feature"
  Icon={FiStar}
  hoverEffect="lift"
  interactive
/>

// Interactive callback
<BentoCard
  name="Action"
  onClick={() => console.log("clicked")}
  hoverEffect="glow"
  interactive
/>