Sha256: a7e2fd50dddd2b62d368b2963feb816aa54c965bfed553bb36d7c31015e3f661
Contents?: true
Size: 560 Bytes
Versions: 12
Compression:
Stored size: 560 Bytes
Contents
import React from 'react'; import { Tooltip, Icon, OverlayTrigger } from 'patternfly-react'; import PropTypes from 'prop-types'; const ButtonTooltip = props => { const tooltip = ( <Tooltip id={`${props.tooltipId}-tooltip-id`}> <span>Use default value from settings</span> </Tooltip> ); return ( <OverlayTrigger overlay={tooltip} trigger={['hover', 'focus']}> <Icon type="fa" name="refresh" /> </OverlayTrigger> ); }; ButtonTooltip.propTypes = { tooltipId: PropTypes.string.isRequired, }; export default ButtonTooltip;
Version data entries
12 entries across 12 versions & 1 rubygems