Skip to content

Commit 9bef3e3

Browse files
(Icon): add the Current Color story
1 parent 8235e6f commit 9bef3e3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

stories/Icon.stories.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,29 @@ export const ControlledWithKnobs: StoryObj<ComponentProps<typeof Icon>> = {
6464
},
6565
};
6666

67+
/**
68+
*
69+
*/
70+
export const CurrentColor: StoryObj<ComponentProps<typeof Icon>> = {
71+
render: ({ color, ...args }) => (
72+
<div style={{ color }}>
73+
<Icon {...args} />
74+
</div>
75+
),
76+
args: {
77+
category: 'utility',
78+
icon: 'announcement',
79+
textColor: 'currentColor',
80+
color: 'purple',
81+
},
82+
parameters: {
83+
docs: {
84+
storyDescription:
85+
'Icon that inherits color from parent element using currentColor',
86+
},
87+
},
88+
};
89+
6790
/**
6891
*
6992
*/

0 commit comments

Comments
 (0)