Meter
A value that stays in a known range, such as the space used on a disk.
<script>
import Label from '@brumate/ui/Label.brm';
import Meter from '@brumate/ui/Meter.brm';
</script>
<Meter class="ui-bar" value=(72)><Label>Disk space used</Label></Meter>
value,minValueandmaxValueset the range, 0 to 100 by default.aria-valuetextis the value as the locale writes it, a percentage by default.formatOptionschanges it, with the options ofIntl.NumberFormat, andvalueLabelreplaces it.- A
Labelinside names it. - It sets
--percentagefor CSS, and acontenttemplate gets the percentage and the text. See Styling.