Stepper Arrow Steps
Build a row of filled arrow-shaped steps, with no markers or lines. label-placement="bottom" centers the text, and ::part(marker) and ::part(line-end) hide the marker and the line. The :state(--first), :state(--last), :state(--past), and :state(--current) states shape and color each arrow.
Code
The following example assumes that you have imported the component and set up the theme.
<div class="arrow-steps">14 collapsed lines
<sv-stepper aria-label="Release" clickable current="1" label-placement="bottom"> <sv-step> Build <span slot="description">Done in 42 s</span> </sv-step> <sv-step> Review <span slot="description">Approved</span> </sv-step> <sv-step> Release <span slot="description">Waiting</span> </sv-step> </sv-stepper></div>
<style>65 collapsed lines
.arrow-steps { display: grid; overflow-x: auto;
sv-stepper { --sv-stepper-gap: 0px; --sv-stepper-marker-sz: 0px; }
sv-step { --notch: 1em; --point: 1em;
flex: 1 1 0; padding: 0.75em 1em 0.75em 1.25em; margin-inline-start: -0.75em; background-color: var(--sv-gray-6); clip-path: polygon( 0 0, calc(100% - var(--point)) 0, 100% 50%, calc(100% - var(--point)) 100%, 0 100%, var(--notch) 50% ); }
sv-step:state(--first) { --notch: 0px;
margin-inline-start: 0; border-start-start-radius: var(--sv-bdr-rad-md); border-end-start-radius: var(--sv-bdr-rad-md); }
sv-step:state(--last) { --point: 0px;
border-start-end-radius: var(--sv-bdr-rad-md); border-end-end-radius: var(--sv-bdr-rad-md); }
sv-step:state(--past) { background-color: color-mix(in srgb, var(--sv-accent) 30%, var(--sv-gray-6)); }
sv-step:state(--current) { color: var(--sv-accent-content); background-color: var(--sv-accent);
&::part(description) { color: inherit; } }
sv-step::part(marker), sv-step::part(line-end) { display: none; }
sv-step::part(label), sv-step::part(description) { margin: 0; } }</style>