generated from ZanzyTHEbar/SolidJSTauri
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
38 lines (34 loc) · 828 Bytes
/
index.stories.tsx
File metadata and controls
38 lines (34 loc) · 828 Bytes
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
36
37
38
import { Meta, StoryObj } from 'storybook-solidjs-vite'
import Toast from './index'
const meta: Meta<typeof Toast> = {
title: 'Components/Components/ProgressBar',
component: Toast,
parameters: {
layout: 'centered',
backgrounds: {
default: 'dark',
values: [{ name: 'dark', value: '#0a0a0a' }],
},
},
argTypes: {
duration: {
control: { type: 'number', min: 0, max: 5000 },
},
paused: { control: 'boolean' },
color: { control: 'color' },
},
args: {
duration: 2000,
paused: false,
color: '#fff',
},
}
export default meta
type Story = StoryObj<typeof Toast>
export const Default: Story = {
args: {
duration: 2000,
paused: false,
color: '#fff',
},
}