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
Section titled “Import”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>Slots / marker directives
Section titled “Slots / marker directives”| Marker | Kind | Notes |
|---|---|---|
axCardHeader | Attribute slot | Title / actions area (select="[axCardHeader]"). Empty header is hidden. |
axCardContent | Attribute slot | Main body (select="[axCardContent]"). |
axCardFooter | Attribute slot | Actions / metadata; flex row aligned end. Empty footer is hidden. |
Unmarked projected content also lands in the content region. All slots are optional.
Accessibility
Section titled “Accessibility”Card is a presentational container — it adds no roles. Use real headings inside the header slot so the document outline stays meaningful.
Storybook
Section titled “Storybook”Interactive examples live in Storybook under Data / Card. Run pnpm storybook to explore them.