Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

API REFERENCE · LAYOUT

<dj-card>

Content container. Slots: header, default (content), actions. Optional title/subtitle/media-src. clickable makes the body a button. Parts: root, media, body, actions.

Try it in the playground

@dojo-ng/card · v0.1.1

npm install @dojo-ng/card

import "@dojo-ng/card";

Properties

PropertyAttributeTypeDefault
kind kind reflected "elevated""outlined" "elevated"
square square boolean false
title title string ""
subtitle subtitle string ""
mediaSrc media-src string None
mediaTitle media-title string None
clickable clickable boolean false

Slots

SlotDescription
header
Default slotcontent
actions

CSS parts

Style these with dj-card::part(name).

rootmediabodyactions