Skip to content

Card

<ts-card> vv0.4.0

The ts-card component.

Open in Storybook for interactive demos.

<ts-card elevation="sm" padding="md">Content</ts-card>
PropertyAttributeTypeDefaultDescription
borderedborderedbooleanfalseBorder style variant.
elevationelevation"lg" | "md" | "none" | "sm" | "xl"'sm'Elevation level controlling the shadow depth.
interactiveinteractivebooleanfalseMakes the card interactive (hover effect, cursor pointer).
paddingpadding"lg" | "md" | "none" | "sm"'md'Padding size for the card body.
NameDescription
*(default)*Default slot for card body content.
footerCard footer content.
headerCard header content.
mediaMedia content (image, video) displayed at the top.

Use ::part() to style internal elements:

PartDescription
baseThe card container.
bodyThe body wrapper.
footerThe footer wrapper.
headerThe header wrapper.
mediaThe media wrapper.
ts-card::part(base) {
/* your custom styles */
}
<ts-card elevation="sm" padding="md">Content</ts-card>
import { TsCard } from '@tessera-ui/react';
<TsCard elevation="sm" padding="md">Content</TsCard>