Cards are surfaces that display content and actions on a single topic. They should be easy to scan for relevant and actionable information. Elements, like text and images, should be placed on them in a way that clearly indicates hierarchy.
<dt-card class="d-w-400" header-class="h:d-bgc-moderate-opaque" content-class="h:d-bgc-moderate-opaque" footer-class="h:d-bgc-moderate-opaque"> <template #header> (header slot) </template> <template #content> (content slot) </template> <template #footer> (footer slot) </template> </dt-card>
<dt-card class="d-w-400"> <template #header> <dt-text as="p" kind="headline" :size="300">Lorem ipsum</dt-text> <dt-button :size="100" importance="clear" kind="muted" aria-label="Menu button" > <template #startIcon> <dt-icon name="more-vertical" size="100" /> </template> </dt-button> </template> <template #content> Content slot. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec fermentum molestie semper. </template> </dt-card>
<dt-card class="d-w-400"> <template #content> Content slot. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec fermentum molestie semper. </template> <template #footer> <dt-button importance="outlined" :size="200" > Button </dt-button> </template> </dt-card>
<dt-card class="d-w-400"> <template #content> Content slot. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec fermentum molestie semper. </template> </dt-card>
<dt-card class="d-w-400" content-class="d-pie-0"> <template #header> <dt-text as="p" kind="headline" :size="300">Lorem ipsum</dt-text> <dt-button :size="100" importance="clear" kind="muted" aria-label="Menu button" > <template #startIcon> <dt-icon name="more-vertical" size="100" /> </template> </dt-button> </template> <template #content> <div class="d-h-125 d-pie-200" v-dt-scrollbar:always>Content slot. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec fermentum molestie semper.</div> </template> <template #footer> <dt-button importance="outlined" :size="200" > Button </dt-button> </template> </dt-card>
import { DtCard } from '@dialpad/dialtone-vue';
Name
|
Type
|
|---|---|
content | slot for main content |
footer | slot for footer content |
header | slot for header content |
Name
|
Default
|
Type
|
|---|---|---|
contentClass | '' | string|array|object class for card content. |
footerClass | '' | string|array|object class for card footer. |
headerClass | '' | string|array|object class for card header. |
maxHeight | null | string The maximum height of the card content.
If given, makes content area scrollable. |
At minimum, card contains body of content. It could also have header with buttons, and footer with buttons/text.
Class
|
Applies to
|
Description
|
|---|
Card documentation last updated Friday, September 4, 2026
fix/popover-modal-zindex-scope