A meter block. mode selects the drawing, items are the tracked values, and the options control the labels drawn beside them and where the block sits on the page.
mode
items
const hp = meter('bar', [{ name: 'HP', icon: 'heart', current: 8, max: 10, color: '#c33' }], { showMax: true }) Copy
const hp = meter('bar', [{ name: 'HP', icon: 'heart', current: 8, max: 10, color: '#c33' }], { showMax: true })
A meter block.
modeselects the drawing,itemsare the tracked values, and the options control the labels drawn beside them and where the block sits on the page.