Skip to content
RefineUI

Card

Container grouping related information.

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"Visual variant style.
interactivefalsebooleanEnables hover/press interactions.
state"default""default" | "hover" | "pressed" | "disabled"Visual state.

Header layout section.

Main header content wrapper.

Title heading element.

Secondary description text.

Main card body content.

Footer section (typically for actions).

Action button in header.