@@ -26,7 +26,7 @@ For the purposes of this blog post the [Storybook](https://storybook.js.org/) in
2626``` tsx twoslash
2727// @filename: IconBase.tsx
2828import React from " react" ;
29- export type IconProps = Omit <JSX .IntrinsicElements [" svg" ], " ref" >;
29+ export type IconProps = Omit <React . JSX .IntrinsicElements [" svg" ], " ref" >;
3030
3131export default function IconBase(props : IconProps ) {
3232 const { children, ... rest } = props ;
@@ -79,7 +79,7 @@ For stories that have a control for the currently shown icon, we will dynamicall
7979``` tsx twoslash
8080// @filename: IconBase.tsx
8181import React from " react" ;
82- export type IconProps = Omit <JSX .IntrinsicElements [" svg" ], " ref" >;
82+ export type IconProps = Omit <React . JSX .IntrinsicElements [" svg" ], " ref" >;
8383
8484export default function IconBase(props : IconProps ) {
8585 const { children, ... rest } = props ;
@@ -120,7 +120,7 @@ This gives us a hook that returns a lazy component or undefined given an icon na
120120``` tsx twoslash
121121// @filename: IconBase.tsx
122122import React from " react" ;
123- export type IconProps = Omit <JSX .IntrinsicElements [" svg" ], " ref" >;
123+ export type IconProps = Omit <React . JSX .IntrinsicElements [" svg" ], " ref" >;
124124
125125export default function IconBase(props : IconProps ) {
126126 const { children, ... rest } = props ;
0 commit comments