File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function App() {
1313 return (
1414 < div className = "App" >
1515 < header className = "App-header" >
16- < ReactLogo style = { { fontSize : '3em' } } />
16+ < ReactLogo title = "React Logo" style = { { fontSize : '3em' } } />
1717 < span dangerouslySetInnerHTML = { { __html : RawReactLogo } } > </ span >
1818 < p > Hello Vite + React!</ p >
1919 < p >
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export const JSXCompiler = (async (
1818 {
1919 plugins : [ '@svgr/plugin-jsx' ] ,
2020 ref : options . jsx === 'react' ,
21+ titleProp : options . jsx === 'react' ,
2122 } ,
2223 { componentName : camelize ( `${ collection } -${ icon } ` ) } ,
2324 )
Original file line number Diff line number Diff line change 11declare module 'virtual:icons/*' {
22 import type { ForwardRefExoticComponent , SVGProps } from 'react'
33
4- const component : ForwardRefExoticComponent < SVGProps < SVGSVGElement > >
4+ const component : ForwardRefExoticComponent < SVGProps < SVGSVGElement > & { title ?: string } >
55 export default component
66}
77declare module '~icons/*' {
88 import type { ForwardRefExoticComponent , SVGProps } from 'react'
99
10- const component : ForwardRefExoticComponent < SVGProps < SVGSVGElement > >
10+ const component : ForwardRefExoticComponent < SVGProps < SVGSVGElement > & { title ?: string } >
1111 export default component
1212}
You can’t perform that action at this time.
0 commit comments