Stage 07 · Component

Slant bars

Two offset bars behind the line that matters.

Live

People decide.Agents do the work.

Reasoning

Why it exists

Team kits underline a rider name with two slanted bars in different colors. It marks one line as the important one without changing its typeface or size.

How it wraps

The bars are a background on the text, cloned per line, so when the phrase breaks on a narrow screen every line gets its own pair instead of one large block.

Leave it out when

There is already one on screen. Two highlighted lines cancel each other.

Props

PropTypeWhat it does
slotrequireddefaultThe text to highlight.

Sourcepackages/ui/src/components/SlantBars.astro