You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/components/src/icon/index.stories.tsx
+2-33Lines changed: 2 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,12 @@
1
-
/**
2
-
* External dependencies
3
-
*/
4
-
5
-
/**
6
-
* WordPress dependencies
7
-
*/
8
1
import{wordpress}from'@wordpress/icons';
9
2
import{SVG,Path}from'@wordpress/primitives';
10
-
11
-
/**
12
-
* Internal dependencies
13
-
*/
14
-
importIconfrom'..';
15
-
import{VStack}from'../../v-stack';
3
+
import{Icon}from'.';
16
4
importtype{Meta,StoryFn}from'@storybook/react';
17
5
18
6
constmeta: Meta<typeofIcon>={
19
-
title: 'Components/Icon',
7
+
title: 'Still Internal/Icon',
20
8
component: Icon,
21
9
parameters: {
22
-
controls: {expanded: true},
23
10
docs: {canvas: {sourceState: 'shown'}},
24
11
},
25
12
};
@@ -120,21 +107,3 @@ WithAnSVG.args = {
120
107
</SVG>
121
108
),
122
109
};
123
-
124
-
/**
125
-
* Although it's preferred to use icons from the `@wordpress/icons` package, [Dashicons](https://developer.wordpress.org/resource/dashicons/) are still supported,
126
-
* as long as you are in a context where the Dashicons stylesheet is loaded. To simulate that here,
127
-
* use the Global CSS Injector in the Storybook toolbar at the top and select the "WordPress" preset.
0 commit comments