Skip to content

Skew ​

The plate everything else is made of

Button, Badge, Tabs, Pagination, Steps markers, card and section labels — all a BlessSkew. Use it directly when you need a label the library doesn't have: a role tag, a category, a date stamp. The outer element leans by --bless-skew; the inner span leans back by --bless-skew-counter, so the text stays upright. Both are 0deg at rest: as a button or link it leans on hover, focus and press; as a static label it stays upright. Always square: --bless-radius-plate is 0. accent is for a label that marks something chosen, never one at rest.

color fills it; label gives it a label's padding and type — together they make a tag. Without label it is a bare skew, no padding, no type, just the lean — what Button, Tabs and Pagination build on with their own sizing. as picks the element (h3, a, button, a router link).

The slot is inline: text, an icon, a badge. For a skewed box with block content inside, skew a div yourself with the two tokens and counter-skew a child.

Basic
企画締切第1話Hover me

Usage ​

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

API ​

Props

NameTypeDefaultDescription
asstring | Component"span"element to render
color"text" | "accent" | "danger" | "none" | "surface""none"fill: text | accent | danger | surface; `none` just leans
labelboolean—a standalone label: label padding and type

Slots

NameScopeDescription
default—

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