Skip to content

Gauge

Examples

$0ARR run rate
$428,000ARR run rate

API Reference

Types come from the public API. A dash indicates no default is documented here.

Gauge props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<K, Ends> | undefined''The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default.
onEmit((events: never) => NoInfer<Msg> | undefined) | undefined—Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event.
props.idstringRequired
props.valuenumberRequired
props.spacingnumber—
props.prefixstring—
props.heightnumber—
props.minWidthnumber—
props.widthnumber—
props.classNamestring—
props.ariaLabelstringoptions.ariaLabel
props.orientation"linear" | "arc"—
props.useGradientboolean—
props.enterTransition
Show type
{ readonly delay?: number; readonly duration?: number; readonly ease?: string | readonly number[] | readonly (string | readonly number[])[]; readonly type?: unknown; readonly stiffness?: number; readonly damping?: number; readonly mass?: number; readonly bounce?: number; }
—
props.suffixstring—
props.labelAlign"end" | "start" | "center"—
props.totalNotchesnumber—
props.notchCornerRadiusnumber—
props.uniformWidthboolean—
props.startAnglenumber—
props.endAnglenumber—
props.activeGradientreadonly [string, string]—
props.inactiveGradientreadonly [string, string]—
props.centerValuenumber—
props.defaultLabelstring'Total'
props.formatOptions
Show type
{ readonly style?: "decimal" | "percent" | "currency"; readonly currency?: string; readonly unit?: string; readonly maximumFractionDigits?: number; readonly notation?: "compact" | "standard"; readonly compactDisplay?: "long" | "short"; readonly minimumFractionDigits?: number; readonly minimumIntegerDigits?: number; readonly minimumSignificantDigits?: number; readonly maximumSignificantDigits?: number; readonly currencyDisplay?: "symbol" | "code" | "name" | "narrowSymbol"; readonly unitDisplay?: "long" | "short" | "narrow"; }
{ maximumFractionDigits: 0, notation: 'standard', }
props.labelPlacement"bottom" | "left" | "right" | "top"—
props.inactiveFillstring—
props.activeFillstring—
props.inactiveFillOpacitynumber—
props.activeFillOpacitynumber—
props.notchLengthPercentnumber—
props.notchWidthPercentnumber—
props.linearHeightnumber—
props.enterStaggerScalenumber1
props.geometryScrubbingboolean—