Meter
State belongs to the parent. Compose this component with the props and slots below.
Preview
Usage
<script setup lang="ts">
import { FzMeter } from '@chrisdalbano/forza-ui'
</script>
<template>
<FzMeter :value="72" :max="100" label="Budget used" />
</template>Import the shared stylesheet once and wrap your app in .fz-theme. See installation.
Props
| Name | Type | Required | Default |
|---|---|---|---|
value | number | Yes | None |
max | number | undefined | No | 100 |
label | string | Yes | None |
tone | "warning" | "positive" | "accent" | undefined | No | "positive" |
Events and state
presentational
Slots
none
Add from source
sh
forza add meterSet up the CLI first. Generated API tables come from the Vue source, using Vue Language Tools.