2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Data

LinearGauge

Updated: November 16, 2025
View on GitHub
The LinearGauge component renders a horizontal tick-based gauge ideal for progress indicators, metrics dashboards, and system health displays. It supports flexible label configurations including none, percentage, or custom values. Show percentage labels at key intervals (0%, 25%, 50%, 75%, 100%). Provide an array of custom labels distributed evenly across the gauge. Flip the order of labels and gauge by using direction="column-reverse". Use the hue prop to represent different states with color gradients. Customize tick count, width, and length for different visual densities. The LinearGauge component accepts all layout props from Flex (except direction) plus the following gauge-specific props:
Prop
Type
Default
width
Track length, in pixels.
number400
height
Track thickness, in pixels.
number80
line
The tick marks along the track: how many, how thick, how long.
{ count?: number; width?: number; length?: number; }
value
Where the gauge reads, 0–100.
number50
labels
"percentage" prints the value, or pass your own strings to label the ticks. "none" hides them.
nonepercentagestring[]
none
hue
Colour the fill by its value — a named ramp, or a [from, to] pair of hue degrees to interpolate between.
successneutraldanger[number, number]
color
A single colour for the fill, when it should not vary with the value. Takes a token or any CSS colour.
ColorValuecontrast
…and every FlexProps propinherited
Use LinearGauge for horizontal metrics displays, progress tracking, or any scenario where a linear representation is more appropriate than a radial one.
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club