Skip to content

Commit 1c9b66e

Browse files
tcbegleyAnnMarieW
andauthored
Added flip prop to Toolip (#708)
Co-authored-by: AnnMarieW <amward@fastmail.com>
1 parent 467419c commit 1c9b66e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/tooltip/Tooltip.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ const Tooltip = props => {
3939
};
4040

4141
Tooltip.defaultProps = {
42-
delay: {show: 0, hide: 50}
42+
delay: {show: 0, hide: 50},
43+
placement: 'auto',
44+
flip: true
4345
};
4446

4547
Tooltip.propTypes = {
@@ -105,6 +107,12 @@ Tooltip.propTypes = {
105107
'left-end'
106108
]),
107109

110+
/**
111+
* Whether to flip the direction of the popover if too close to the container
112+
* edge, default True.
113+
*/
114+
flip: PropTypes.bool,
115+
108116
/**
109117
* Control the delay of hide and show events.
110118
*/

0 commit comments

Comments
 (0)