Panel
Card
A container for one piece of content: an optional header image, a title and subtitle, the content and a footer of actions.
WAI-ARIA tested
Import
main.ts
import { Card } from '@vitral/vue';Basic
Simple card
Cards group related content and actions. They have no role of their own; put a heading in the title slot when the card belongs in the page outline.
API
Read from packages/vue/src/components/Card/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| title | string | — |
| subtitle | string | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| header | — | Above the body, edge to edge: an image or a banner. |
| title | — | Replaces the `title` text. |
| subtitle | — | Replaces the `subtitle` text. |
| default | — | — |
| footer | — | — |