GoScrobble/web/node_modules/reactstrap/es/Tooltip.js

23 lines
756 B
JavaScript

import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import classNames from 'classnames';
import TooltipPopoverWrapper, { propTypes } from './TooltipPopoverWrapper';
var defaultProps = {
placement: 'top',
autohide: true,
placementPrefix: 'bs-tooltip',
trigger: 'hover focus'
};
var Tooltip = function Tooltip(props) {
var popperClasses = classNames('tooltip', 'show', props.popperClassName);
var classes = classNames('tooltip-inner', props.innerClassName);
return /*#__PURE__*/React.createElement(TooltipPopoverWrapper, _extends({}, props, {
popperClassName: popperClasses,
innerClassName: classes
}));
};
Tooltip.propTypes = propTypes;
Tooltip.defaultProps = defaultProps;
export default Tooltip;