Painel
Card
Um contêiner para um único conteúdo: uma imagem de cabeçalho opcional, título e subtítulo, o conteúdo e um rodapé de ações.
Testado com WAI-ARIA
Importação
main.ts
import { Card } from '@vitral/vue';Básico
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
Lido de packages/vue/src/components/Card/types.ts, então diz o que o componente aceita de fato.
Props
| Nome | Tipo | Descrição |
|---|---|---|
| title | string | — |
| subtitle | string | — |
Mais pt, dt e unstyled de BaseProps; veja pass-through e modo sem estilo.
Slots
| Nome | Props do slot | Descrição |
|---|---|---|
| header | — | Acima do corpo, de borda a borda: uma imagem ou um banner. |
| title | — | Substitui o texto de `title`. |
| subtitle | — | Substitui o texto de `subtitle`. |
| default | — | — |
| footer | — | — |