@ -8,6 +8,7 @@ export default class Tooltip extends PureComponent {
children : null ,
children : null ,
containerClassName : '' ,
containerClassName : '' ,
html : null ,
html : null ,
interactive : undefined ,
onHidden : null ,
onHidden : null ,
position : 'left' ,
position : 'left' ,
size : 'small' ,
size : 'small' ,
@ -22,6 +23,7 @@ export default class Tooltip extends PureComponent {
containerClassName : PropTypes . string ,
containerClassName : PropTypes . string ,
disabled : PropTypes . bool ,
disabled : PropTypes . bool ,
html : PropTypes . node ,
html : PropTypes . node ,
interactive : PropTypes . bool ,
onHidden : PropTypes . func ,
onHidden : PropTypes . func ,
position : PropTypes . oneOf ( [
position : PropTypes . oneOf ( [
'top' ,
'top' ,
@ -39,7 +41,21 @@ export default class Tooltip extends PureComponent {
}
}
render ( ) {
render ( ) {
const { arrow , children , containerClassName , disabled , position , html , size , title , trigger , onHidden , wrapperClassName , style } = this . props
const {
arrow ,
children ,
containerClassName ,
disabled ,
position ,
html ,
interactive ,
size ,
title ,
trigger ,
onHidden ,
wrapperClassName ,
style ,
} = this . props
if ( ! title && ! html ) {
if ( ! title && ! html ) {
return (
return (
@ -52,17 +68,18 @@ export default class Tooltip extends PureComponent {
return (
return (
< div className = { wrapperClassName } >
< div className = { wrapperClassName } >
< ReactTippy
< ReactTippy
html = { html }
arrow = { arrow }
className = { containerClassName }
className = { containerClassName }
disabled = { disabled }
disabled = { disabled }
title = { title }
position = { position }
trigger = { trigger }
hideOnClick = { false }
hideOnClick = { false }
size = { size }
html = { html }
arrow = { arrow }
interactive = { interactive }
onHidden = { onHidden }
onHidden = { onHidden }
position = { position }
size = { size }
style = { style }
style = { style }
title = { title }
trigger = { trigger }
>
>
{ children }
{ children }
< / R e a c t T i p p y >
< / R e a c t T i p p y >