Card
Flat surface
One item in a set of similar items — an episode, a product, a person — laid out as a box with an optional label, media and footer. For a single block of content use a Panel or a Section.
Basic
Blu-ray
EpisodeBlu-ray Disc BOX
2019.09.25 発売
第1話 冴えない竹馬の友の口説きかた
2019.04.04 · 24:00
Staff
原作 丸戸史明 · キャラクター原案 深崎暮人
hrefmakes the whole card one link, and everything in it becomes the link's name. So keep it short, and don't put buttons or other links inside a linked card; they can't be reached properly inside another link. If the card needs actions, leavehrefoff and link the title instead.labelis the tag on top — ink by default, and it leans with a linked card on hover; keeplabelColor="accent"for a card that is chosen;surfaceandborderedset the box.
Usage
ts
import { BlessCard } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
as | string | "div" | |
label | string | — | skewed header label |
labelColor | "text" | "accent" | "danger" | "surface" | "text" | |
surface | "surface" | "bg" | "bg" | |
bordered | boolean | true | |
href | string | — | whole card is a link |
Slots
| Name | Scope | Description |
|---|---|---|
label | — | |
media | — | |
default | — | |
footer | — |