How to use the @zendeskgarden/react-tooltips.getPopperPlacement function in @zendeskgarden/react-tooltips

To help you get started, we’ve selected a few @zendeskgarden/react-tooltips 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 zendeskgarden / react-components / packages / menus / src / containers / MenuContainer.js View on Github external
convertGardenToPopperPlacement = () => {
    const { placement } = this.props;

    if (isRtl(this.props)) {
      return getRtlPopperPlacement(placement);
    }

    return getPopperPlacement(placement);
  };
github zendeskgarden / react-components / packages / autocomplete / src / containers / AutocompleteContainer.js View on Github external
convertGardenToPopperPlacement = () => {
    const { placement } = this.props;

    if (isRtl(this.props)) {
      return getRtlPopperPlacement(placement);
    }

    return getPopperPlacement(placement);
  };