Icon Card
BlockBasic Usage
Loading...
Installation
pnpm add @corew500/uiUsage
import { IconCard } from "@corew500/ui/blocks/icon-card"
<IconCard>Content</IconCard>CMS Integration
Loading...
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | Card title (required) |
| description | string | — | Card description |
| icon | enum | — | Icon element |
| iconIntent | enum | primary | Icon intent color - coordinates icon background, hover border, and button accent. |
| layout | enum | icon-top | Layout variant. - `icon-top`: Icon above title (vertical layout) - `icon-left`: Icon beside title (horizontal layout) |
| action | IconCardAction | — | Primary action button |
| iconHoverEffect | enum | translate | Icon hover animation triggered on card hover. - `none`: No animation - `scale`: Scale up slightly - `translate`: Move up slightly |
| borderHover | enum | true | Show accent border on hover matching icon intent. |
| iconSize | enum | lg | Icon badge size. |
| iconVariant | enum | soft | Icon badge variant. |
Accessibility
Additional
- - Card structure uses semantic heading hierarchy (CardTitle)
- Icon is decorative; card title provides accessible name
- Action button has accessible label
Localization
Translatable Content
- - Component accepts pre-resolved translated strings
- All text content customizable: title, description, action.label