File size: 1,104 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: Card
description: Used to display content related to a single subject.
links:
  source: components/card
  storybook: components-card--basic
  recipe: card
---

<ExampleTabs name="card-basic" />

## Usage

```jsx
import { Card } from "@chakra-ui/react"
```

```jsx
<Card.Root>
  <Card.Header />
  <Card.Body />
  <Card.Footer />
</Card.Root>
```

## Examples

### Variants

Use the `variant` prop to change the visual style of the Card.

<ExampleTabs name="card-with-variants" />

### Within Form

Use the Card component within a form to group related fields together.

<ExampleTabs name="card-with-form" />

### Sizes

Use the `size` prop to change the size of the Card.

<ExampleTabs name="card-with-sizes" />

### With Image

Use the Card component to display an image.

<ExampleTabs name="card-with-image" />

### Horizontal

Use the Card component to display content horizontally.

<ExampleTabs name="card-horizontal" />

### With Avatar

Use the Card component to display an avatar.

<ExampleTabs name="card-with-avatar" />

## Props

### Root

<PropTable component="Card" part="Root" />