Skip to content

Card

<ax-card> is a structural surface with three optional attribute slots: [axCardHeader], [axCardContent], and [axCardFooter]. Unmarked projected content also lands in the content region.

import { AxCardComponent } from '@axisui-ng/data';
<ax-card>
<div axCardHeader>
<h3>Monthly plan</h3>
</div>
<div axCardContent>
<p>Everything you need to get started.</p>
</div>
<div axCardFooter>
<ax-button variant="primary">Choose plan</ax-button>
</div>
</ax-card>
MarkerKindNotes
axCardHeaderAttribute slotTitle / actions area (select="[axCardHeader]"). Empty header is hidden.
axCardContentAttribute slotMain body (select="[axCardContent]").
axCardFooterAttribute slotActions / metadata; flex row aligned end. Empty footer is hidden.

Unmarked projected content also lands in the content region. All slots are optional.

Card is a presentational container — it adds no roles. Use real headings inside the header slot so the document outline stays meaningful.

Interactive examples live in Storybook under Data / Card. Run pnpm storybook to explore them.