forked from axa-ch-webhub-cloud/pattern-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
story.js
35 lines (33 loc) · 842 Bytes
/
story.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { html } from 'lit';
import changelog from './CHANGELOG.md';
import readme from './README.md';
import './index';
export default {
title: 'Components/Stepper',
parameters: {
readme,
usage: {
propsPureHTML: `steps='["Step 1", "Step 2", "Step 3"]'`,
propsReact: `steps={['Step 1', 'Step 2', 'Step 3']}`,
},
changelog,
layout: 'fullscreen',
},
args: {
steps: ['Angaben', 'Leistungen', 'Übersicht', 'Fertig'],
stepActive: 2,
stepProgress: 0.5,
},
argTypes: {
steps: { control: 'object' },
stepActive: { control: 'number' },
stepProgress: { control: 'number' },
},
};
export const Stepper = ({ steps, stepActive, stepProgress }) => html`
<axa-stepper
.steps=${steps}
.stepActive=${stepActive || 0}
.stepProgress=${stepProgress || 0}
></axa-stepper>
`;