Skip to content

Commit 78aad9a

Browse files
committed
fix: add NsProgress stories
1 parent 7de54a6 commit 78aad9a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { NsProgress } from "@nethserver/ns8-ui-lib";
2+
3+
export default {
4+
title: "Components/NsProgress",
5+
component: NsProgress,
6+
args: {
7+
stepId: "firstStep",
8+
steps: [
9+
{
10+
id: "firstStep",
11+
label: "First Step",
12+
},
13+
{
14+
id: "secondStep",
15+
label: "Second Step",
16+
},
17+
{
18+
id: "thirdStep",
19+
label: "Third Step",
20+
},
21+
{
22+
id: "fourthStep",
23+
label: "Fourth Step",
24+
},
25+
],
26+
},
27+
};
28+
29+
const Template = (args, { argTypes }) => ({
30+
props: Object.keys(argTypes),
31+
components: { NsProgress },
32+
template: `<NsProgress v-bind="$props" />`,
33+
});
34+
35+
export const Default = Template.bind({});
36+
Default.args = {};
37+
38+
export const SecondStep = Template.bind({});
39+
SecondStep.args = {
40+
stepId: "secondStep",
41+
};

0 commit comments

Comments
 (0)