Skip to content

Commit 89faba9

Browse files
aramos-adobemarissahuysentruyt
authored andcommitted
docs(progressbar): add side label story and control
1 parent 9cc4488 commit 89faba9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

components/progressbar/stories/progressbar.stories.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export default {
2626
table: {
2727
type: { summary: "string" },
2828
category: "Component",
29-
// todo: side labels are not supported according to S1 documentation, but will be in S2. Remove the disable: true once S2 is released
30-
disable: true,
3129
},
3230
options: ["top", "side"],
3331
control: "select",
@@ -174,6 +172,20 @@ WithoutValue.parameters = {
174172
chromatic: { disableSnapshot: true },
175173
};
176174

175+
/**
176+
* 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.
177+
*/
178+
export const SideLabel = Template.bind({});
179+
SideLabel.storyName = "Side label";
180+
SideLabel.args = {
181+
labelPosition: "side",
182+
value: 50,
183+
};
184+
SideLabel.tags = ["!dev"];
185+
SideLabel.parameters = {
186+
chromatic: { disableSnapshot: true },
187+
};
188+
177189
export const StaticWhite = ProgressBarGroup.bind({});
178190
StaticWhite.storyName = "Static white";
179191
StaticWhite.tags = ["!dev"];

0 commit comments

Comments
 (0)