File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/graphiql-react/src/ui Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphiql/react ' : patch
3
+ ---
4
+
5
+ Fix TypeScript type of the ` label ` prop of the ` Tooltip ` component
Original file line number Diff line number Diff line change 1
- import { ReactElement } from 'react' ;
1
+ import { ReactElement , ReactNode } from 'react' ;
2
2
import * as T from '@radix-ui/react-tooltip' ;
3
3
import { createComponentGroup } from '../utility/component-group' ;
4
4
import './tooltip.css' ;
@@ -9,7 +9,7 @@ export function TooltipRoot({
9
9
side = 'bottom' ,
10
10
sideOffset = 5 ,
11
11
label,
12
- } : T . TooltipContentProps & { label : string } ) : ReactElement {
12
+ } : T . TooltipContentProps & { label : ReactNode } ) : ReactElement {
13
13
return (
14
14
< T . Root >
15
15
< T . Trigger asChild > { children } </ T . Trigger >
You can’t perform that action at this time.
0 commit comments