# KptCard (kpt-card) A card - a surface with elevation (elevated) or a border (outlined). Import: `import { KptCard } from '@konce-pt/angular';` ## Selector `kpt-card` ## Inputs - `variant`: 'elevated' | 'outlined' (default 'elevated') - `header`: string - optional header text - `headingLevel`: 1-6 | null (default null) - makes `header` a heading of that level - `flush`: boolean - a body with no padding (for rich layouts that manage their own sections) ## Content projection - the default content -> the card body - an element carrying the `kptCardFooter` attribute (a direct child of `kpt-card`) -> the footer `kptCardFooter` must be a DIRECT child. Angular's content projection matches direct children only, so a footer nested inside a `
` (or any other wrapper) inside the card is never projected into the footer slot - it falls into the body instead, picking up the body's padding. Nothing warns about it, and the footer's own styling still applies, which makes the symptom read as a spacing bug rather than a placement one. Put the wrapper inside the footer, not the footer inside the wrapper. ## Reusable layout classes (media / profile) - `kpt-card__media` - a full-width image (clipped to the radius; set `aspect-ratio`/`height` inline) - `kpt-card__lead` - the header row (avatar + titles), with padding - `kpt-card__title`, `kpt-card__subtitle` - title/subtitle typography - `kpt-card__section` - a padded section (a column with gaps) - `kpt-card__tags` - a row of chips; `kpt-card__meta` - an icon+text row (rating/location) - `kpt-card__avatar` - an overlapping avatar with a ring (on the cover) - `kpt-card__actions` - a row of buttons (equal widths) ## Example

Content...

Save
Shiba Inu
Dog Breed
Description...
LIKE
## Tokens `--kpt-card-{bg,fg,border,radius,padding,shadow}`. ## Accessibility The card is a plain container with no role of its own. `header` is styled text by default - set `headingLevel` (1-6) to make it a heading (`role="heading"` + `aria-level`) when the card should appear in the page outline; leave it off for tiles that would only clutter it. Give media images a meaningful `alt`, or `alt=""` when decorative.