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%
Upcoming
A card title with one link opposite it, and rows in the body.
Upcoming
API
| Name | Type | Default | Description |
|---|---|---|---|
eyebrow | string | — | Small caps label at the top of the head. #eyebrow slot overrides it. |
title | string | — | Card title (card-title). #title slot overrides it. |
as | "h2" | "h3" | "h4" | "h2" | Heading level of the title. |
tag | string | "div" | Element to render (use section for a landmark card). |
flush | boolean | false | No body padding, for tables and timetables that run to the edge. |
bodyStyle | StyleValue | — | Inline style on card__body (the stat card trims its top padding to 6px under the head). |
#head | slot | — | More content under the eyebrow on the left of the head (a stat value). |
#actions | slot | — | Controls on the right of the head: a link, a range picker, icon buttons. |
default | slot | — | The body (card__body). |
#footer | slot | — | After the body, edge to edge. |