Usage

A simple component to show usage of a metric (e.g. storage) in a bar.

Properties

Name
Default
Description
name
The name of the metric.
current
Current value of the metric.
limit
Maximum value of the metric.
bytes
false
Whether to format the values are in bytes.
warningPercentage
85
Percentage at which the color changes to orange.
dangerPercentage
95
Percentage at which the color changes to red.
notIncludedText
Your license does not include this feature.
Text to show when the feature is not included in the license (limit is 0).

Examples

<Usage name="Storage" current={100000000} limit={1000000000} bytes />
<Usage name="Users" current={85} limit={100} />
<Usage name="Websites" current={10} limit={10} />
<Usage name="Websites" current={0} limit={0} />
Storage
100 MB / 1 GB
Users
85 / 100
Websites
10 / 10
Websites
Your license does not include this feature.