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.

eds-gauge Open in Storybook

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

PropertyAttributeDescriptionTypeDefault
labellabelShort caption under the value (mono, uppercase), also used in the accessible name.stringundefined
sizesizeDiameter of the gauge (pixels)number100
thicknessthicknessRing thickness as a fraction of the diameter (0.03–0.2, default 0.06). Values outside are clamped.number0.06
unitunitUnit shown after the value, e.g. “%” or “ms”.stringundefined
valuevalueCurrent valuenumber60
valueMaxvalue-maxMaximum value (gauge end)number100
valueMinvalue-minMinimum value (gauge start)number0
variantvariantColour of the empty track: default (light grey), dark, strong or black."black" | "dark" | "default" | "strong"'default'

Built with StencilJS