FeatureCard
Feature presentation block - icon + title + description + optional badge + optional CTA. Used in landing for features, resources, pillars.
Live preview
★
Smart matching
AI ghép cặp learner với lộ trình phù hợp.
◇
Real-time feedback
Phản hồi ngay sau mỗi câu trả lời.
Import & files
Import
import { FeatureCard } from "@/components/ui/FeatureCard";- Source file
components/ui/FeatureCard.tsx
Spec
Spec Props · Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
icon | ReactNode | - | — |
title | string | - | — |
description | string | - | — |
badge | ReactNode | - | — |
action | ReactNode | - | — |
Usage
Do not stack icon-tile-above for every feature (slop-06). Vary composition within a feature grid.
Figma note: Playground composition pattern - not a single Figma component category. See Playground source.
Examples
Examples 1
- Icon + title + description
AI context
AI context
Markdown summary safe to paste into Claude / ChatGPT / Cursor — includes name, status, import, props, axes, examples, figma source.
# FeatureCardDomain: general · Category: layoutDesign: extension · Code: code-only
## DescriptionFeature presentation block - icon + title + description + optional badge + optional CTA. Used in landing for features, resources, pillars.
## Import```tsimport { FeatureCard } from "@/components/ui/FeatureCard";```Source: `components/ui/FeatureCard.tsx`
## Props (5)| Prop | Type | Default | Description ||---|---|---|---|| `icon` | `ReactNode` | - | || `title` | `string` | - | || `description` | `string` | - | || `badge` | `ReactNode` | - | || `action` | `ReactNode` | - | |
## UsageDo not stack icon-tile-above for every feature (slop-06). Vary composition within a feature grid.
## Examples- **Icon + title + description**Related
Status legend
Status legend
- Stable
- Design + code shipped, full DS parity.
- Partial
- Design ready, some variants/states missing in code.
- Coded
- Implemented in code; design canon may not yet exist.
- Design only / Code only
- One side present; awaiting the other.
Phase 1.X-5.2 detail view — read-only metadata. Code preview + recipe + live demo deferred (need @dol/ui registry integration).