콘텐츠로 이동
RefineUI

Card

관련 정보를 묶는 컨테이너.

NewDesign system

RefineUI is now available

Ship product UI with tokens, React, and Web Kit parity.

Utilities, React components, and shared foundations for building consistent web applications.
P
Pelagornis Inc · 7 hours ago

Overview

Machine-readable contract from Component Spec.

component: cardexport: Cardversion: 1attributes: data-refineui=card

Anatomy

Partdata-refineui
rootcard
actioncard-action
contentcard-content
descriptioncard-description
footercard-footer
headercard-header
header_maincard-header-main
titlecard-title

Variants

AxisValues
variantelevated, outlined

States

ScopeCategoryValues
componentcomponentdata-state: default, hover, pressed, disabled
componentenvironmentforced-colors, dir
cardcomponentdata-state: default, hover, pressed, disabled

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import {
Card,
CardHeader,
CardHeaderMain,
CardTitle,
CardDescription,
CardContent,
CardFooter,
CardAction
} from "@refineui/react";
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card description goes here.</CardDescription>
</CardHeader>
<CardContent>
<p>Card body content</p>
</CardContent>
<CardFooter>
<Button>Action</Button>
</CardFooter>
</Card>
<Card variant="outlined" interactive state="hover">
<CardContent>
Interactive card with outlined variant
</CardContent>
</Card>
PropDefaultTypeDescription
variant"elevated""elevated" | "outlined"시각적 변형 스타일.
interactivefalseboolean호버/프레스 인터랙션을 활성화합니다.
state"default""default" | "hover" | "pressed" | "disabled"시각 상태.

헤더 레이아웃 섹션.

메인 헤더 콘텐츠 래퍼.

제목 헤딩 요소.

보조 설명 텍스트.

카드 본문 콘텐츠.

푸터 섹션(보통 액션용).

헤더의 액션 버튼.