🧮 StorageBar

Overview

A composable function that displays a storage bar. This type of chart is typically used to visualize proportions of a whole, such as disk space usage where different categories (e.g., photos, apps, documents) consume parts of the total storage. The segments are laid out horizontally, and their widths are proportional to their values.

Usage

Key parameters for using this chart:

The corners of the first and last segments can be rounded. Clicking a segment can also slightly increase its height for emphasis.