Skip to content

Commit

Permalink
feat: add tooltip to button
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmichel committed May 29, 2023
1 parent 19ce0a7 commit 26a9fa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const Button: BsPrefixRefForwardingComponent<'button', ButtonProps> =
animateIcon,
animateIconClass,
animateInfiniteIcon,
tooltip = null,
tooltip,
...props
},
ref
Expand Down Expand Up @@ -237,6 +237,7 @@ export const Button: BsPrefixRefForwardingComponent<'button', ButtonProps> =
)}
</Component>
);

if (!tooltip) {
return <RenderButton />;
}
Expand Down

0 comments on commit 26a9fa5

Please sign in to comment.