Swirski UI

Typography

SectionLabel

A chunky rotated heading label for editorial section markers, callouts and page breaks.

Component

11

Request Changes

Import

import { SectionLabel } from "@swirski/ui";

Playground

This component does not have editable controls yet.

Usage

<SectionLabel tone="yellow">Featured</SectionLabel>

Props

5 generated
PropTypeDefaultNotes
asChildbooleanfalseRenders the child as the root element.
childrenReactNode-Label text.
size'sm' | 'md' | 'lg'"md"Applies the label padding and heading scale.
tone'blue' | 'yellow' | 'red' | 'white'"yellow"Applies the label color treatment.
variant'default' | 'flat'"default"Toggles the offset shadow treatment.
...headingPropsHTMLAttributes<HTMLHeadingElement>-Forwarded to the rendered heading.
Previous: CardNext: Typography