UNPKG

@spectrum-css/progressbar

Version:

The Spectrum CSS progress bar component

48 lines (46 loc) 1.08 kB
import { Variants } from "@spectrum-css/preview/decorators"; import { Template } from "./template.js"; export const ProgressBarGroup = Variants({ Template, testData: [ { testHeading: "Default", }, { testHeading: "Side label", labelPosition: "side", }, { testHeading: "Text overflow", label: "Storage space remaining for XYZ user" }, { testHeading: "Without label", label: undefined, showValueLabel: false, }, { testHeading: "Without value label", showValueLabel: false, }, /* The gradient story below supports linear-gradients used by Express. For use cases that require a custom linear-gradient for any --mod-*-{fill} properties, set those custom properties in CSS. */ { testHeading: "Gradient support", trackFill: "linear-gradient(to right, hotpink, orange)", progressBarFill: "linear-gradient(to left, teal, purple)", }, { testHeading: "Static white", staticColor: "white", }, ], stateData: [ { testHeading: "Indeterminate", isIndeterminate: true, value: undefined, } ], });