@zendeskgarden/react-tooltips
Version:
Collection of components and render prop containers relating to Tooltips in the Garden Design System
17 lines (16 loc) • 548 B
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import { ITooltipProps } from '../types';
/**
* Convert to the intended tooltip size for the given type.
*
* @param {string} size Tooltip size prop value
* @param {string} type Tooltip type prop value
*
* @returns A tooltip size.
*/
export declare const toSize: (size: ITooltipProps["size"], type: ITooltipProps["type"]) => "small" | "medium" | "large" | "extra-large";