Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions components/progressbar/stories/progressbar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export default {
table: {
type: { summary: "string" },
category: "Component",
// todo: side labels are not supported according to S1 documentation, but will be in S2. Remove the disable: true once S2 is released
disable: true,
},
options: ["top", "side"],
control: "select",
Expand Down Expand Up @@ -174,6 +172,20 @@ WithoutValue.parameters = {
chromatic: { disableSnapshot: true },
};

/**
* Labels are placed by default on top of the progress bar, but can also be positioned on the side. Side labels are most useful when vertical space is limited.
*/
export const SideLabel = Template.bind({});
SideLabel.storyName = "Side label";
SideLabel.args = {
labelPosition: "side",
value: 50,
};
SideLabel.tags = ["!dev"];
SideLabel.parameters = {
chromatic: { disableSnapshot: true },
};

export const StaticWhite = ProgressBarGroup.bind({});
StaticWhite.storyName = "Static white";
StaticWhite.tags = ["!dev"];
Expand Down
Loading