Components/Layout/Card
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/card-content
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/>.
<Card.Header/> or the <SectionHeader/>.<Card/> component.The padding area on all 4 sides of the component is controlled by the size prop:
medium. It will add a 24 px padding on all sides.large. It will add a 36 px padding on all sides.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.
Add a <Card.Divider/> to separate content elements into clear groups.
When there is no data to display in the card's content, use the <EmptyState/> component instead.
| 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. |
Import the driver matching your test environment:
| 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. |
Last updated: 20 October 2026