SVG completion ring with a visible muted track and a thicker progress stroke.
The flicker original used the same stroke width for track and value, and a
track colour that disappeared on the page background — 7/19 read as an empty
circle. Here the track is --lantern-border-strong and the value stroke is
thicker, so partial progress is obvious.
<.progress_ring value={7} max={19} />
<.progress_ring completed={7} scope={19}>
7 / 19
</.progress_ring>value/max is the generic API. completed/scope is the flicker-shaped
alias so a consuming page does not have to remap.
Summary
Functions
Attributes
value(:integer) - Completed amount. Ignored whenscopeis set. Defaults tonil.max(:integer) - Total amount. Defaults to 100 when onlyvalueis set. Defaults tonil.completed(:integer) - Flicker alias ofvalue; used withscope. Defaults tonil.scope(:integer) - Flicker alias ofmax. Defaults tonil.size(:string) - sm is 28px; md is 40px. Defaults to"md". Must be one of"sm", or"md".color(:string) - Semantic colour of the progress stroke. Defaults to"success". Must be one of"success","accent","primary","danger","warning", or"info".label(:string) - Accessible name. Decorative (aria-hidden) when omitted and no inner slot. Defaults tonil.class(:any) - Extra classes merged onto the root element. Defaults tonil.- Global attributes are accepted. Arbitrary HTML/
phx-*attributes passed through.
Slots
inner_block- Optional caption beside the ring (counts, short copy).