eds-gauge
Explore the Interactive Component
Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.
See It in Use with Code
Check out this practical implementation of component.
When you’re using the component directly in HTML (or in frameworks that don’t support property binding), you must pass the values like:
In React
Overview
EdsGauge shows a single value within a range as a thin ring with rounded
caps: the value in Inter Light at the centre, an optional mono unit and
caption under it.
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
label | label | Short caption under the value (mono, uppercase), also used in the accessible name. | string | undefined |
size | size | Diameter of the gauge (pixels) | number | 100 |
thickness | thickness | Ring thickness as a fraction of the diameter (0.03–0.2, default 0.06). Values outside are clamped. | number | 0.06 |
unit | unit | Unit shown after the value, e.g. “%” or “ms”. | string | undefined |
value | value | Current value | number | 60 |
valueMax | value-max | Maximum value (gauge end) | number | 100 |
valueMin | value-min | Minimum value (gauge start) | number | 0 |
variant | variant | Colour of the empty track: default (light grey), dark, strong or black. | "black" | "dark" | "default" | "strong" | 'default' |
Built with StencilJS