Skip to content

Commit 6563733

Browse files
committed
feat: la til story for progressbar
1 parent 720a779 commit 6563733

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
};

0 commit comments

Comments
 (0)