Components/Layout/Card
Deprecated. Card.Subheader is deprecated and will be removed in the next major version. Please use SectionHeader instead.
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/card-subheader
The card subheader divides card content into sections. It's an optional compound component of the <Card/>.
<Card/> component.Card subheaders consist of 2 parts:
title labels contents under the subheader.suffix is a container for an action button or other components.Note that both parts are optional and their position is fixed.
Control the background color with the skin:
standard is the default and is used in most cases.neutral is used to minimize the component's visual weight.Use title to summarize the content below the subheader.
Use a suffix container to add info or actions that apply to the card content.
A variety of components can be used in the suffix:
<Button/><TextButton/><IconButton/><Text/><InfoIcon/>Use card subheaders to organize card info into categories. It will make the whole card easier to scan.
| Name | Type | Default | Description |
|---|---|---|---|
dataHook | string | — | Applies a data-hook HTML attribute to be used in the tests. |
skin | "standard" | "neutral" | 'standard' | Controls the background color of a subheader. |
suffix | ReactNode | — | Adds an empty container on the right side of a subheader. Commonly used to store action buttons or an info icon. |
title (required) | ReactNode | — | Sets a title text value. Title can also be overridden to any other component. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
title | Returns title text. |
titleNode | Returns title node. |
suffixNode | Returns suffix node. |
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. |
No released changes have been recorded for this component.
Last updated: 20 October 2026