A surface container: a bordered, toned box laying out an optional media
region plus a header / body / footer stack. Pass href to turn the whole
card into a link.
Renders an <a-card> web component. A stateless projection — the element owns
layout, the link, and the accessible name, and stylizes only its own surface
(never its children's typography). The wrapper maps props to attributes,
projects content into the media / icon / header / body / footer
sections, and supplies typography for the two text zones by wrapping a string
header in <Title> and a string body in <Text>. A leading icon (a shape
string, or any node) is laid out beside the title / subtitle by the element.
There is no actions slot — lay out any header controls (buttons, tags) inside
the header yourself.
Requires @antadesign/anta/elements to be imported (client-side only) to
register the underlying custom element.
A surface container: a bordered, toned box laying out an optional
mediaregion plus aheader/ body /footerstack. Passhrefto turn the whole card into a link.Renders an
<a-card>web component. A stateless projection — the element owns layout, the link, and the accessible name, and stylizes only its own surface (never its children's typography). The wrapper maps props to attributes, projects content into themedia/icon/header/ body /footersections, and supplies typography for the two text zones by wrapping a stringheaderin<Title>and a string body in<Text>. A leadingicon(a shape string, or any node) is laid out beside the title / subtitle by the element. There is no actions slot — lay out any header controls (buttons, tags) inside theheaderyourself.Requires
@antadesign/anta/elementsto be imported (client-side only) to register the underlying custom element.