We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Current Color
1 parent 8235e6f commit 9bef3e3Copy full SHA for 9bef3e3
stories/Icon.stories.tsx
@@ -64,6 +64,29 @@ export const ControlledWithKnobs: StoryObj<ComponentProps<typeof Icon>> = {
64
},
65
};
66
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
+
90
/**
91
*
92
*/
0 commit comments