File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3108,6 +3108,10 @@ export interface TooltipProps {
31083108 * The appearance of the Tooltip.
31093109 */
31103110 appearance ?: TooltipAppearance
3111+ /**
3112+ * The id of the tooltip.
3113+ */
3114+ id ?: string
31113115 /**
31123116 * The position the Tooltip is on.
31133117 */
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const Tooltip = memo(function Tooltip(props) {
2222 statelessProps = emptyProps
2323 } = props
2424
25- const id = useId ( 'evergreen-tooltip' )
25+ const id = useId ( 'evergreen-tooltip' , props . id )
2626 const [ isShown , setIsShown ] = useState ( propIsShown || false )
2727 const [ isShownByTarget , setIsShownByTarget ] = useState ( false )
2828 const closeTimer = useRef ( undefined )
@@ -153,6 +153,11 @@ Tooltip.propTypes = {
153153 */
154154 appearance : PropTypes . oneOf ( [ 'default' , 'card' ] ) ,
155155
156+ /**
157+ * The id of the tooltip.
158+ */
159+ id : PropTypes . string ,
160+
156161 /**
157162 * The position the Popover is on.
158163 */
You can’t perform that action at this time.
0 commit comments