> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Card.Content Component

## Article: Card.Content Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/layout/card/card-content-component.md

## Article Content:

# Card.Content

_Components/Layout/Card_

Interactive docs page: <https://wix-pages.com/design-system-documentation/#/component/card-content>

## Overview

```jsx
<Card>
  <Card.Content>
    <StorybookComponents.Placeholder height="180px">
      <Box align="center" verticalAlign="middle" height="100%">
        Card content
      </Box>
    </StorybookComponents.Placeholder>
  </Card.Content>
</Card>;
```

The card content is a container that stores the content of a card. The content should be relevant to the card's header. It's a compound component of the `<Card/>`.

### Do

- Place elements like text and images in a way that clearly indicates hierarchy.
- Use dividers to separate content into clear groups.

### Don't

- Don't repeat the content in the `<Card.Header/>` or the `<SectionHeader/>`.
- Don't use it outside of the `<Card/>` component.

### Feature examples

#### Size

The padding area on all 4 sides of the component is controlled by the `size` prop:

- For most cases, use the default `medium`. It will add a 24 px padding on all sides.
- To add extra padding, use `large`. It will add a 36 px padding on all sides.
- Use `none` to remove the padding entirely, for content that manages its own insets or has to reach the card's edges, a table, a full-width image or a nested layout.

A `Card.Header` above a `none` content keeps its own bottom padding, so the header does not sit flush against the content beneath it.

```jsx
<StorybookComponents.Stack flexDirection="column">
  <Card>
    <Card.Content size="medium">
      <StorybookComponents.Placeholder height="180px">
        Medium padding
      </StorybookComponents.Placeholder>
    </Card.Content>
  </Card>
  <Card>
    <Card.Content size="large">
      <StorybookComponents.Placeholder height="180px">
        Large padding
      </StorybookComponents.Placeholder>
    </Card.Content>
  </Card>
  <Card>
    <Card.Content size="none">
      <StorybookComponents.Placeholder height="180px">
        No padding
      </StorybookComponents.Placeholder>
    </Card.Content>
  </Card>
</StorybookComponents.Stack>;
```

### Common use case examples

#### Structured content

Add a `<Card.Divider/>` to separate content elements into clear groups.

```jsx
<Card>
  <Card.Header
    title="Plan info"
    subtitle="Start by giving your plan a name and tell people what the plan's about."
  />
  <Card.Divider />
  <Card.Content>
    <Layout>
      <Cell span={8}>
        <FormField label="Plan name" required>
          <Input placeholder="e.g., Silver membership" />
        </FormField>
      </Cell>
      <Cell span={8}>
        <FormField label="Tagline (optional)">
          <Input
            placeholder="e.g., Perfect for beginners looking for weekly classes"
          />
        </FormField>
      </Cell>
      <Cell span={12}>
        <Card.Divider />
      </Cell>
      <Cell span={8}>
        <Box direction="vertical" gap="2">
          <FormField
            label="What's included in this plan?"
            infoContent="We recommend adding no more than 5, so clients are not overwhelmed."
          >
            <Input placeholder="e.g., Unlimited yoga classes" />
          </FormField>
          <TextButton size="small" prefixIcon={<Icons.Add />}>
            Add More
          </TextButton>
        </Box>
      </Cell>
    </Layout>
  </Card.Content>
</Card>;
```

#### Empty state

When there is no data to display in the card's content, use the `<EmptyState/>` component instead.

```jsx
<Card>
  <Card.Header
    title="Photo album"
    suffix={
      <Button size="small" prefixIcon={<Icons.AddSmall />}>
        Add Image
      </Button>
    }
  />
  <Card.Divider />
  <Card.Content size="medium">
    <EmptyState
      theme="section"
      title="Add your first image"
      subtitle="Choose the images that will be included in this album."
    >
      <TextButton prefixIcon={<Icons.Add />}>Add Image</TextButton>
    </EmptyState>
  </Card.Content>
</Card>;
```

## Code

```jsx
import { CardContent } from '@wix/design-system';
```

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Accepts any component as a child element to display inside the card content area. |
| `dataHook` | `string` | — | Applies a data-hook HTML attribute to be used in the tests. |
| `size` | `"medium" \| "large" \| "none"` | `'medium'` | Controls paddings of the content area. |

## Testkit

Import the driver matching your test environment:

```jsx
// UniDriver
import { CardContentUniDriver } from '@wix/design-system/dist/testkit/unidriver';

// Vanilla
import { CardContentTestkit } from '@wix/design-system/dist/testkit';

// Puppeteer
import { CardContentTestkit } from '@wix/design-system/dist/testkit/puppeteer';

// Testing Library
import { CardContentTestkit } from '@wix/design-system/dist/testkit/testing-library';
```

### Driver methods

| Method | Description |
| --- | --- |
| `getSize` | — |
| `exists` | Checks whether the component found with the given data hook. |
| `element` | Gets the component root element. |
| `click` | Clicks on the component root element. |
| `base` | Returns UniDriver for the base element. |

## Changelog

- **1.176.2** (2025-04-03) — fix: update getChildName ([#14713](invalid-url))
- **1.176.1** (2025-04-02) — fix: regression ([#14699](invalid-url))
- **1.147.0** (2024-12-13) — feat: add none size option ([#14388](invalid-url))