Booting Environment...

Partition Bar

A horizontal proportional bar chart for effectively visualizing part-to-whole distributed data relationships.

Installation

npx raya-ui@latest add partition-bar

File Structure

your-project
components
ui
partition-bar
PartitionBar.vue
PartitionBarSegment.vue
PartitionBarSegmentTitle.vue
PartitionBarSegmentValue.vue

API Reference

PartitionBar Props

gap
number
1

Space between segments (multiplied by 4px internally).

size
enum
"md"

Height of the bar segments. Accepts 'sm', 'md', or 'lg'.

PartitionBarSegment Props

num
number
0

The value of this segment relative to the sum of all segments in the bar.

variant
string
"default"

Theme color matching standard Shadcn variants (default, secondary, destructive, outline, muted).

alignment
enum
"center"

Horizontal alignment of the content under the bar segment. Accepts 'left', 'center', or 'right'.

Source content adapted from 8 Star labs.

  • System
    50GB
  • Apps
    30GB
  • Free
    20GB
Settings
1 (4px)