> For the complete documentation index, see [llms.txt](https://docs.matestack.io/matestack-ui-core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.matestack.io/matestack-ui-core/1.5.0/components-api/core-components/meter.md).

# Meter

Use the Meter component to implement `<meter>` tag.

## Parameters

### value (required)

Expects a number thats is the current value of the gauge.

### id (optional)

Expects a string with all ids the meter should have.

### class (optional)

Expects a string with all classes the meter should have.

### min (optional)

Expects a number that defines the minimum value of the range.

### max (optional)

Expects a number that defines the maximum value of the range.

### low (optional)

Expects a number that defines which value is considered a low value

### high (optional)

Expects a number that defines which value is considered a high value

### optimum (optional)

Expects a number that defines which value is optimal for the gauge

## Example

```ruby
meter id: 'meter_id', value: 0.6

meter id: 'meter', min: 0, max: 10, value: 6 do
    plain '6 out of 10. 60%.'
end

meter id: 'meter', low: 2, high: 8, optimum: 6, min: 0, max: 10, value: 6 do
    plain '6 out of 10. 60%.'
end
```

returns

```markup
<meter id="meter_id" value="0.6"></meter>

<meter id="meter" max="10" min="0" value="6">6 out of 10. 60%.</meter>

<meter high="8" id="meter" low="2" max="10" min="0" optimum="6" value="6">
    6 out of 10. 60%.
</meter>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.matestack.io/matestack-ui-core/1.5.0/components-api/core-components/meter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
