Back to Components
A card component for displaying summary information with title, value, subtitle, and optional action button.
설치
Import
@hua-labs/ui의 UI 컴포넌트를 @hua-labs/hua에서 통합 제공합니다.
UI 컴포넌트, 모션 훅, i18n을 하나의 패키지로 사용할 수 있습니다.
Pro 컴포넌트입니다. Pro 라이선스가 필요합니다.
라이브 데모
기본 사용법
변형
default
gradient
outline
색상
뱃지 포함
로딩 상태
Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
title* | string | - | Card title |
value* | string | number | - | Summary value to display |
subtitle | string | - | Subtitle text below the value |
icon | IconName | React.ReactNode | - | Icon to display |
color | "blue" | "purple" | "green" | "orange" | "red" | "indigo" | "pink" | "gray" | "blue" | Color theme |
variant | "default" | "gradient" | "outline" | "default" | 시각적 스타일 변형 |
href | string | - | Link URL for action button |
onClick | () => void | - | 클릭 핸들러 |
loading | boolean | false | Show loading state |
badge | string | React.ReactNode | - | Badge to display in header |
footer | React.ReactNode | - | Footer content |
showAction | boolean | true | Whether to show action button |
actionLabel | string | "View Details" | Action button label |