Commit 6563733 1 parent 720a779 commit 6563733 Copy full SHA for 6563733
File tree 1 file changed +30
-0
lines changed
packages/jokul/src/components/progress-bar/stories
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { Meta , StoryObj } from "@storybook/react" ;
2
+ import { ProgressBar as ProgressBarComponent } from "../ProgressBar.js" ;
3
+ import "../styles/_index.scss" ;
4
+ import React from "react" ;
5
+
6
+ const meta : Meta = {
7
+ title : "Komponenter/ProgressBar" ,
8
+ component : ProgressBarComponent ,
9
+ parameters : {
10
+ layout : "centered" ,
11
+ } ,
12
+ tags : [ "autodocs" ] ,
13
+ } satisfies Meta < typeof ProgressBarComponent > ;
14
+
15
+ export default meta ;
16
+
17
+ type Story = StoryObj < typeof ProgressBarComponent > ;
18
+
19
+ export const ProgressBar : Story = {
20
+ args : {
21
+ "aria-valuenow" : 0 ,
22
+ "aria-valuemin" : 0 ,
23
+ "aria-valuemax" : 100 ,
24
+ } ,
25
+ render : ( args ) => (
26
+ < div { ...args } style = { { width : "100%" , minWidth : "240px" } } >
27
+ < ProgressBarComponent { ...args } />
28
+ </ div >
29
+ ) ,
30
+ } ;
You can’t perform that action at this time.
0 commit comments