vael-ui v0.3.10

Data Display

Card

A bordered container for grouping related content, with optional title and actions.

Install

import { Card } from 'vael-ui'

Playground

import { Card } from 'vael-ui'

<Card title="" description="" as="div" :interactive="false">Card</Card>

Props

NameTypeDefaultDescription
titlestring | undefinedDefault header title; ignored when `#header` is used.
descriptionstring | undefinedDefault header description; ignored when `#header` is used.
asstring | undefined"div"Root tag — `'a'`/`'button'` for a fully interactive card.
interactiveboolean | undefinedfalseHover/press affordance. Implied (always on) when `as` is `'a'` or `'button'`.
uiPartial<{ root: UiPartValue; header: UiPartValue; title: UiPartValue; description: UiPartValue; body: UiPartValue; footer: UiPartValue; }> | undefined

Slots

NameTypeDescription
defaultany
headeranyReplaces the default title/description header.
footerany

Events

No events.

Exposed

NameTypeDescription
elHTMLElement | null