1.0.1 • Published 4 years ago

@chameleon-ds/progress-bar v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Chameleon Progress Bar

import { html } from "@open-wc/demoing-storybook";
import { withKnobs, number, text } from "@open-wc/demoing-storybook";
import "./chameleon-progress-bar.js";

export default {
  title: "Components|Status/Progress Bar",
  component: "chameleon-progress-bar",
  decorators: [withKnobs],
  options: { selectedPanel: "storybookjs/docs/panel" },
};

Properties

Property NameType(s)Default ValueDescription
percentNumberundefinedThe total number of items in all pages
totalNumber0The amount of pages of items
completedNumber0The multiselect's current page
labelString""The max length of visible pages

Examples

Default

export const Default = () => {
  const percent = number("Percent", 75);
  const label = text("Label", "Processing...");

  return html`
    <chameleon-progress-bar percent="${percent}" label="${label}">
    </chameleon-progress-bar>
  `;
};
1.0.1

4 years ago

1.0.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago