Skip to content

Commit

Permalink
Update Tooltip message prop to support ReactNode (#1970)
Browse files Browse the repository at this point in the history
* Update Tooltip message prop to support ReactNode

* Add changeset
  • Loading branch information
JasonMHasperhoven authored Jan 6, 2025
1 parent 68f6d53 commit e754ce4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-nails-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/ui': patch
---

Update Tooltip message prop to support ReactNode
2 changes: 1 addition & 1 deletion packages/ui/src/Tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface TooltipProps {
* A string message to show in the tooltip. Note that only strings are
* allowed; for interactive content, use a `<Popover />` or a `<Dialog />`.
*/
message: string;
message: string | ReactNode;
/**
* The trigger for the tooltip.
*
Expand Down

0 comments on commit e754ce4

Please sign in to comment.