Layout / Card

Layout

Card

The resting surface: one border, --el-rest, and no lift on hover.

import { EcoCard } from "vue-ecosphere"

Stat card

An eyebrow and a figure on the left of the head, period controls on the right.

Requests closed

1832%
MonTueWedThuFriSatSun

Upcoming

A card title with one link opposite it, and rows in the body.

Upcoming

API

NameTypeDefaultDescription
eyebrowstring—Small caps label at the top of the head. #eyebrow slot overrides it.
titlestring—Card title (card-title). #title slot overrides it.
as"h2" | "h3" | "h4""h2"Heading level of the title.
tagstring"div"Element to render (use section for a landmark card).
flushbooleanfalseNo body padding, for tables and timetables that run to the edge.
bodyStyleStyleValue—Inline style on card__body (the stat card trims its top padding to 6px under the head).
#headslot—More content under the eyebrow on the left of the head (a stat value).
#actionsslot—Controls on the right of the head: a link, a range picker, icon buttons.
defaultslot—The body (card__body).
#footerslot—After the body, edge to edge.