Skip to content

Commit 83d4a0d

Browse files
committed
add story to show all default icons
1 parent 4cc341b commit 83d4a0d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

packages/main/src/components/ObjectStatus/ObjectStatus.stories.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,39 @@ import { DocsCommonProps } from '@shared/stories/DocsCommonProps';
4444

4545
<br />
4646

47+
## ObjectStatus with default icons
48+
49+
<Canvas>
50+
<Story name="None" args={{ state: ValueState.None, children: `Value State: ${ValueState.None}` }}>
51+
{(args) => {
52+
return <ObjectStatus {...args} />;
53+
}}
54+
</Story>
55+
<Story
56+
name="Information"
57+
args={{ state: ValueState.Information, children: `Value State: ${ValueState.Information}` }}
58+
>
59+
{(args) => {
60+
return <ObjectStatus {...args} />;
61+
}}
62+
</Story>
63+
<Story name="Success" args={{ state: ValueState.Success, children: `Value State: ${ValueState.Success}` }}>
64+
{(args) => {
65+
return <ObjectStatus {...args} />;
66+
}}
67+
</Story>
68+
<Story name="Warning" args={{ state: ValueState.Warning, children: `Value State: ${ValueState.Warning}` }}>
69+
{(args) => {
70+
return <ObjectStatus {...args} />;
71+
}}
72+
</Story>
73+
<Story name="Error" args={{ state: ValueState.Error, children: `Value State: ${ValueState.Error}` }}>
74+
{(args) => {
75+
return <ObjectStatus {...args} />;
76+
}}
77+
</Story>
78+
</Canvas>
79+
4780
## ObjectStatus with custom Icon
4881

4982
<Canvas>

0 commit comments

Comments
 (0)