LineOne's linear progress bar, solid or soft, in every size, with the active shimmer or the indeterminate slide.
<.progress value={42} />
<.progress value={70} color="success" variant="soft" />
<.progress value={50} color="primary" active />
<.progress indeterminate color="info" size="sm" />
<.progress value={30} color="warning" variant="soft" height="1.5" />
<.progress value={60} color="white" />value is read against max (100 by default) and updates with the assign.
Summary
Functions
Renders a progress bar.
Functions
Renders a progress bar.
<.progress value={@uploaded} max={@total} color="success" variant="soft" active />Attributes
value(:any) - A number between 0 andmax. Defaults to0.max(:any) - Defaults to100.color(:string) - The bar's color;whiteis a white bar on a translucent track, for colored cards. Defaults to"neutral". Must be one of"neutral","primary","secondary","info","success","warning","error", or"white".variant(:string) -softtints the track with the bar's color (bg-{color}/15);soliduses the gray track. Defaults to"solid". Must be one of"solid", or"soft".size(:string) - Defaults to"md". Must be one of"sm","md","lg", or"xl".height(:string) - A Tailwind height step (h-1,h-1.5...) that wins oversize;1.5is the onesizelacks. Defaults tonil. Must be one ofnil,"1","1.5","2","3", or"4".active(:boolean) - A light sweeping over the bar. Defaults tofalse.indeterminate(:boolean) - A bar sliding across the track, when the end is not known. Defaults tofalse.label(:string) - Thearia-labelof the progress bar. Defaults tonil.class(:any) - Defaults tonil.bar_class(:any) - Defaults tonil.- Global attributes are accepted.