Skip to content

Commit 73e1247

Browse files
authored
Merge pull request #78 from input-output-hk/fix/lw-12407-Fix-Tooltip-types-in-ui-toolkit
fix: optional Tooltip props [LW-12407]
2 parents 2f63846 + 6731b2f commit 73e1247

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/design-system/tooltip/tooltip-root.component.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ import * as Tooltip from '@radix-ui/react-tooltip';
66
import { TooltipContent } from './tooltip-content.component';
77
import * as cx from './tooltip-root.css';
88

9-
export type Props = Pick<
10-
Tooltip.PopperContentProps,
11-
'align' | 'children' | 'side'
12-
> &
13-
typeof Tooltip.Root & {
14-
label: ReactNode | string;
15-
zIndex?: number;
16-
};
9+
export type Props = typeof Tooltip.Root & {
10+
align?: Tooltip.PopperContentProps['align'];
11+
children?: Tooltip.PopperContentProps['children'];
12+
side?: Tooltip.PopperContentProps['side'];
13+
label: ReactNode | string;
14+
zIndex?: number;
15+
};
1716

1817
export const Root = ({
1918
label,

0 commit comments

Comments
 (0)