Gauge
Examples
API Reference
Types come from the public API. A dash indicates no default is documented here.
Gauge props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<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.id | string | Required | |
props.value | number | Required | |
props.spacing | number | — | |
props.prefix | string | — | |
props.height | number | — | |
props.minWidth | number | — | |
props.width | number | — | |
props.className | string | — | |
props.ariaLabel | string | options.ariaLabel | |
props.orientation | "linear" | "arc" | — | |
props.useGradient | boolean | — | |
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.suffix | string | — | |
props.labelAlign | "end" | "start" | "center" | — | |
props.totalNotches | number | — | |
props.notchCornerRadius | number | — | |
props.uniformWidth | boolean | — | |
props.startAngle | number | — | |
props.endAngle | number | — | |
props.activeGradient | readonly [string, string] | — | |
props.inactiveGradient | readonly [string, string] | — | |
props.centerValue | number | — | |
props.defaultLabel | string | '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.inactiveFill | string | — | |
props.activeFill | string | — | |
props.inactiveFillOpacity | number | — | |
props.activeFillOpacity | number | — | |
props.notchLengthPercent | number | — | |
props.notchWidthPercent | number | — | |
props.linearHeight | number | — | |
props.enterStaggerScale | number | 1 | |
props.geometryScrubbing | boolean | — |