How to use the hig-vanilla.Tooltip function in hig-vanilla

To help you get started, we’ve selected a few hig-vanilla examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Autodesk / hig / packages / react / src / adapters / TooltipAdapter.js View on Github external
function TooltipAdapter(props) {
  return (
    
      {adapterProps => (
        <div>
          
          
          
            {(instance, value) =&gt; (value ? instance.open() : instance.close())}
          
          </div>
github Autodesk / hig / packages / react / src / adapters / TooltipAdapter.js View on Github external
{props.children}
          
        
      )}
    
  );
}

TooltipAdapter.propTypes = {
  anchorPoint: PropTypes.oneOf(HIG.Tooltip.AvailableAnchorPoints),
  onClickOutside: PropTypes.func,
  open: PropTypes.bool,
  target: PropTypes.node,
  content: PropTypes.string,
  children: PropTypes.node
};

export default TooltipAdapter;