Features
- Split Layouts: Divide card into multiple sections horizontally or vertically
- Tabs Integration: Built-in tab support
- Collapsible: Expandable/collapsible card sections
- Ghost Mode: Transparent background for nested cards
- Grid Layout: Responsive grid system
- Statistical Cards: Display metrics and statistics
- Check Cards: Selectable card options
Basic Usage
Card Variants
- Outlined
- Filled
- Borderless
Split Layouts
Divide a card into multiple sections:Horizontal Split
Vertical Split
Complex Split
Tabs Card
Collapsible Card
Collapsible Mode
Ghost Mode
Transparent card for nested layouts:StatisticCard
Display statistical data:Statistic Types
CheckCard
Selectable card options:Multiple Selection
Grid Layout
Responsive Grid
Loading State
Card Actions
Card Sizes
Hoverable
Box Shadow
Key Props
ProCard Props
| Prop | Type | Description |
|---|---|---|
title | ReactNode | Card title |
extra | ReactNode | Extra content in header |
variant | 'outlined' | 'filled' | 'borderless' | Card variant |
split | 'vertical' | 'horizontal' | Split direction |
colSpan | number | string | Column span (grid) |
gutter | number | [number, number] | Grid gutter |
ghost | boolean | Ghost mode (transparent) |
collapsible | boolean | Enable collapse |
collapsed | boolean | Collapsed state |
tabs | TabsProps | Tabs configuration |
loading | boolean | Loading state |
hoverable | boolean | Hover effect |
boxShadow | boolean | Box shadow |
StatisticCard Props
| Prop | Type | Description |
|---|---|---|
statistic | StatisticProps | Statistic configuration |
chart | ReactNode | Chart element |
chartPlacement | 'left' | 'right' | 'bottom' | Chart placement |
CheckCard Props
| Prop | Type | Description |
|---|---|---|
checked | boolean | Checked state |
value | any | Card value |
onChange | (checked) => void | Change handler |
disabled | boolean | Disabled state |
title | ReactNode | Card title |
description | ReactNode | Card description |
avatar | ReactNode | Avatar element |
Best Practices
Use split layouts for dashboards
Use split layouts for dashboards
Organize dashboard metrics using split layouts:
Use ghost cards for nested content
Use ghost cards for nested content
When nesting cards, use ghost mode to avoid excessive borders and backgrounds.
Leverage StatisticCard for metrics
Leverage StatisticCard for metrics
Use StatisticCard instead of custom layouts for displaying numerical data - it’s optimized for readability and includes trend indicators.
Optimize responsive layouts
Optimize responsive layouts
Use colSpan with breakpoint objects for responsive card layouts:
Related Components
- ProTable - Use ProCard as table container
- ProDescriptions - Display details in cards
- ProForm - Form layout with cards