Status Dots
A lightweight component for marking the state of projects or leads in B2B panels.
Status Dots
A lightweight component for marking the state of projects or
leads. It can be combined with the .status-ping
class from the animations module.
<span class="status-dot status-draft">Draft</span>
<span class="status-dot status-pending">Pending</span>
<span class="status-dot status-done">Done</span>
<!-- With a pulsing animation -->
<span class="status-dot status-done status-ping">Live</span>
Stock Bar (Segmented Stock Level)
A five-segment level indicator - stock levels, limits, quotas.
Zero JS and zero extra markup: the segments are drawn by an
SVG mask, and the number of filled segments is passed from the
backend via the style="--stock-filled: 3"
variable (0-5). Empty segments are a tint of the variant
color, so the component also works in dark mode. Provide the
value as adjacent text (or add role="img" +
aria-label) - the bar itself is purely visual.
<!-- Fill: --stock-filled from 0 to 5 -->
<span class="stock-bar stock-bar-success" style="--stock-filled: 4"></span>
<span class="stock-bar stock-bar-warning" style="--stock-filled: 3"></span>
<span class="stock-bar stock-bar-danger" style="--stock-filled: 1"></span>
<!-- Neutral (no variant = secondary color) -->
<span class="stock-bar" style="--stock-filled: 2"></span>
<!-- Screen-reader accessible version -->
<span class="stock-bar stock-bar-success" style="--stock-filled: 4"
role="img" aria-label="Stock level: 4/5"></span>