Sophic Interface Systems
Components

Progress Bar

Split brand/neutral track for allocation, cash, and weight bars.

Brand fill with a neutral remainder — used for allocation and holdings weight bars.

Usage

import { ProgressBar } from "@sophic/portal-ui";

<ProgressBar percent={52} />;

percent is clamped to 0–100. Any non-zero share keeps a visible fill from the left (floored to the bar height) so tiny weights like 0.01 still read.

Weight against a target

Pass target (0 to 100, clamped) to draw a short tick across the bar at that position, so the filled weight reads against where it should be. The tick is decorative and hidden from assistive technology: show the actual and target numbers as text next to the bar.

<ProgressBar percent={28} target={40} />

Props

Prop

Type

Default

Changelog

  • 2 December 2026: tone fills with a share-ramp step instead of the brand fill, to match a Stacked Bar segment. Full notes
  • 24 November 2026: target draws a tick for a weight against its target. Full notes
  • 2 October 2026 — Non-zero fills keep a minimum width so tiny percents stay visible. Full notes
  • 26 September 2026 — Alternative palette: fill is brand-400, track is brand-400 at 18% on the card. Default palette is unchanged.
  • 24 July 2026 — Promoted from Blocks into Components. Full notes

On this page