Backpack UI
Components
Cards
Subcomponents

Subcomponents

CardBody

The CardBody component is used to display the main content of a card. It supports rich text rendering with storyblok-rich-text-react-renderer. It can be used in combination with other card components like VideoCard, TeaserCard, and EditorialCard.

Usage


_10
<CardBody text_color="OPTIONAL_COLOR_OPTION">
_10
{/* Your content here */}
_10
</CardBody>

Props

PropTypeDescription
text_colorOptionOptional color for the text inside the CardBody component.

CardFooter

The CardFooter component is used to display the footer content of a card. It also supports rich text rendering with storyblok-rich-text-react-renderer. It can be used in combination with other card components like VideoCard, TeaserCard, and EditorialCard.

Usage


_10
<CardFooter text_color="OPTIONAL_COLOR_OPTION">
_10
{/* Your content here */}
_10
</CardFooter>

Props

PropTypeDescription
text_colorOptionOptional color for the text inside the CardFooter component.

CardImage

The CardImage component is used to display the image content of a card. It can be used in combination with other card components like VideoCard, TeaserCard, and EditorialCard.

Usage


_10
<CardImage src="YOUR_IMAGE_SRC" alt="YOUR_IMAGE_ALT_TEXT" asChild={OPTIONAL_BOOLEAN} />

Props

PropTypeDescription
srcstringThe source URL for the image.
altstringThe alternative text for the image.
asChildbooleanOptional boolean to determine if the component should be rendered as a child.

CardTitle

The CardTitle component is used to display the title content of a card. It supports rich text rendering with storyblok-rich-text-react-renderer. It can be used in combination with other card components like VideoCard, TeaserCard, and EditorialCard.

Usage


_10
<CardTitle variant="OPTIONAL_TITLE_VARIANT" text_color="OPTIONAL_COLOR_OPTION">
_10
{/* Your content here */}
_10
</CardTitle>

Props

PropTypeDescription
variantstringOptional title variant, e.g., "title3".
text_colorOptionOptional color for the text inside the CardTitle component.