Skip to content

Commit

Permalink
Bugfix: Tooltipの型情報を修正 (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi17 authored Jun 3, 2024
1 parent 61fb80c commit 06331a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-dogs-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ingred-ui": patch
---

fix the type information for the Tooltip component
5 changes: 4 additions & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ import {
import { useTheme } from "../../themes";
import { AutoPlacement, usePlacement } from "../../hooks/usePlacement";

export type TooltipProps = React.ComponentPropsWithoutRef<"div"> & {
export type TooltipProps = Omit<
React.ComponentPropsWithoutRef<"div">,
"content"
> & {
content: React.ReactNode;
open?: boolean;
disableHoverListener?: boolean;
Expand Down

0 comments on commit 06331a1

Please sign in to comment.