Skip to content

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

Blu-ray Disc BOX

2019.09.25 発売

Episode

第1話 冴えない竹馬の友の口説きかた

2019.04.04 · 24:00

Staff

原作 丸戸史明 · キャラクター原案 深崎暮人

  • href makes 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, leave href off and link the title instead.
  • label is the tag on top — ink by default, and it leans with a linked card on hover; keep labelColor="accent" for a card that is chosen; surface and bordered set the box.

Usage ​

ts
import { BlessCard } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
asstring"div"
labelstring—skewed header label
labelColor"text" | "accent" | "danger" | "surface""text"
surface"surface" | "bg""bg"
borderedbooleantrue
hrefstring—whole card is a link

Slots

NameScopeDescription
label—
media—
default—
footer—

Released under the MIT License. Character names and artwork belong to their owners.