|
1
|
import type { Meta, StoryObj } from "@storybook/react" |
|
2
|
|
|
3
|
import { StatusBadge } from "./status-badge" |
|
4
|
|
|
5
|
const meta: Meta<typeof StatusBadge> = { |
|
6
|
title: "Components/StatusBadge", |
|
7
|
component: StatusBadge, |
|
8
|
parameters: { |
|
9
|
layout: "centered", |
|
10
|
}, |
|
11
|
} |
|
12
|
|
|
13
|
export default meta |
|
14
|
|
|
15
|
type Story = StoryObj<typeof StatusBadge> |
|
16
|
|
|
17
|
export const Grey: Story = { |
|
18
|
args: { |
|
19
|
children: "Draft", |
|
20
|
color: "grey", |
|
21
|
}, |
|
22
|
} |
|
23
|
|
|
24
|
export const Green: Story = { |
|
25
|
args: { |
|
26
|
children: "Published", |
|
27
|
color: "green", |
|
28
|
}, |
|
29
|
} |
|
30
|
|
|
31
|
export const Red: Story = { |
|
32
|
args: { |
|
33
|
children: "Expired", |
|
34
|
color: "red", |
|
35
|
}, |
|
36
|
} |
|
37
|
|
|
38
|
export const Blue: Story = { |
|
39
|
args: { |
|
40
|
children: "Pending", |
|
41
|
color: "blue", |
|
42
|
}, |
|
43
|
} |
|
44
|
|
|
45
|
export const Orange: Story = { |
|
46
|
args: { |
|
47
|
children: "Requires Attention", |
|
48
|
color: "orange", |
|
49
|
}, |
|
50
|
} |