Theme
Gauge
SVG gauge indicator with configurable arc, thresholds, and label
Start Here
Start from the smallest working snippet, then move to interactive examples and the full API contract below.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Gauge } from '@dryui/ui';
</script>
<Gauge value={72} min={0} max={100} thresholds={[{ value: 30, color: "red" }, { value: 70, color: "orange" }, { value: 90, color: "green" }]} />Import options
Root package
ts
import { Gauge } from '@dryui/ui'Per-component subpath
ts
import { Gauge } from '@dryui/ui/gauge'Customize
Use the interactive examples to see common variants, states, and composition patterns before building your own.
Compose
The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Default | Required | Bindable |
|---|
Also accepts standard HTML attributes (class, style, id, etc.)