Progress bar with a positioned marker indicator.
Inspired by Tremor's MarkerBar component. Renders a horizontal bar with a vertical marker at a specific position. Useful for showing current value against a range.
Examples
<.marker_bar value={62} />
<.marker_bar value={80} color="oklch(0.60 0.20 240)" show_animation />
Summary
Functions
Attributes
value(:any) (required) - Marker position (0-100).color(:string) - Marker color. Defaults to primary. Defaults tonil.show_animation(:boolean) - Animate the marker position. Defaults tofalse.tooltip(:string) - Tooltip text. Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.