UnreviewedOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptional UnreviewedkeyReact/Preact reconciliation key when rendered inside a list.
Optional UnreviewedidHTML id attribute.
Optional UnreviewedclassHTML class attribute (standard DOM).
Optional UnreviewedclassReact/Preact-style class name. Alias for class.
Optional UnreviewedstyleInline styles applied to the element.
OptionalchildrenOptional UnreviewedslotAssigns the element to a named <slot> (e.g. slot="title").
Optional UnreviewedtabTab order. Set to 0 to make the element keyboard-focusable.
Optional UnreviewedroleARIA role override.
Optional UnreviewedtoneSemantic tone, or any literal CSS color for a one-off custom tone. Named tones
re-point the surface + text; a custom color keeps its hue with lightness/chroma
pinned. 'neutral' is the default (same as omitting it).
Optional UnreviewedprioritySurface emphasis. primary (default) is a clean sheet; secondary a subtle
fill; tertiary a frosted, semi-transparent panel with a backdrop blur.
Optional UnreviewedsizeSize variant — scales the padding. medium is the default.
Optional Unreviewedmedia-Which edge the full-bleed media slot sits on. top is the default.
Optional UnreviewedselectedSelected / chosen state — an inset ring in the tone color. Presence-based
('' on, omit off).
Optional UnreviewedloadingLoading state — skeleton pulse, aria-busy, and (in link mode) navigation is
blocked (the anchor drops its href). Presence-based ('' on, omit off).
Optional UnreviewedroundFully-round corners (border-radius: 999px), or a custom radius via a length
value (round="16px"). Presence-based for the boolean form.
Optional UnreviewedhrefTurn the whole card into a link — the shadow container becomes a focusable anchor with this URL.
Optional UnreviewedtargetAnchor target (only with href).
Optional UnreviewedrelAnchor rel (only with href).
Optional UnreviewedpingSpace-separated URLs pinged on navigation (only with href).
Optional Unreviewedaria-Explicit accessible name for the link — overrides the header → body → href chain the element derives in link mode.
Attributes for the
<a-card>custom element — a surface container that lays out an optionalmediaregion plus aheader/ body /footerstack, and becomes a link when givenhref. Slots (light-DOM children):media,icon,header,footer, and the default slot for the body. The element exposes::part(container | media | content | icon | header | body | footer). In link mode it names the shadow anchor fromaria-label→ header text → body text →href. Low-level attributes; for the typed JSX wrapper useCardfrom@antadesign/anta.