Skip to content

FeatureCard

Design: extension Code: Code only landingfeature

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.

# FeatureCard
Domain: general · Category: layout
Design: extension · Code: code-only
## Description
Feature presentation block - icon + title + description + optional badge + optional CTA. Used in landing for features, resources, pillars.
## Import
```ts
import { 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` | - | |
## Usage
Do not stack icon-tile-above for every feature (slop-06). Vary composition within a feature grid.
## Examples
- **Icon + title + description**
  • Start your journey

    CTASection

    Code only
  • M
    audio

    Media

    Design only
  • Mockup UI (Status bar, Indicator, Browser)

    Coded
  • Section title

    Collapse

    Coded
  • Bạn đã xem hết

    Footer

    Coded
  • Card

    Code only

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).