Gauge
A native SwiftUI gauge with linear and circular accessory styles.
#Import
Import Gauge from @quickgui/solid/swift-ui.
import { Host, Gauge } from "@quickgui/solid/swift-ui";#Usage
<Host matchContents>
<Gauge
value={storageUsed()}
min={0}
max={100}
label="Storage"
currentValueLabel={String(storageUsed()) + "%"}
style="accessoryCircularCapacity"
/>
</Host>#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
Gauge
View sourceGauge(props: GaugeProps): NativeNodetestIDstring—
modifiersViewModifier[]—
valuenumber—
minnumber—
maxnumber—
labelstring—
currentValueLabelstring—
Declares currentValueLabel (optional). Reactive JSX expressions update this property in place.
stringView sourceminimumValueLabelstring—
Declares minimumValueLabel (optional). Reactive JSX expressions update this property in place.
stringView sourcemaximumValueLabelstring—
Declares maximumValueLabel (optional). Reactive JSX expressions update this property in place.
stringView sourcestyleGaugeStyle—
Layout, typography, paint, and interaction-state styles. Arrays merge left to right.
GaugeStyleView sourceref((node: NativeNode) => void) | NativeNode—
Declares ref (optional). Reactive JSX expressions update this property in place.
((node: NativeNode) => void) | NativeNodeView source