Diagonal Lines
Diagonal hairlines for section backgrounds, leaning left or right. Absolutely positioned to fill its nearest positioned ancestor - give the parent relative and a height.
Installation
npx stepwise-ui add diagonal-lines
Default
Leans right.
Left
Pass variant="left" to lean the other way.
Props
PropTypeDescription
variant'left' | 'right'Direction of lean. Default 'right'.
sizenumberPattern tile size in px. Default 24.
fadedbooleanFade the pattern out toward the edges. Default true.
classNamestringMerged onto the root.