@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)
With hover="lift" effect
With hover="glow" effect
Props Table
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
name | string | — | ✓ | Card title/heading. |
description | string | — | — | Optional extended description text. |
Icon | React.ElementType | — | — | Optional icon component to display at the top. |
href | string | — | — | If provided, renders as a link element with this href. |
cta | string | — | — | Call-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). |
interactive | boolean | false | — | Enable interactive cursor feedback. |
className | string | — | — | Additional CSS class for custom styling. |