UNPKG

@sap-ux/ui-components

Version:

SAP UI Components Library

30 lines 1.02 kB
import React from 'react'; import type { ITooltipProps, ITooltipStyles } from '@fluentui/react'; /** * UITooltipUtil class for rendering content * * @class UITooltipUtils */ export declare class UITooltipUtils { /** * Method returns styles for tooltip content. * * @returns {ITooltipStyles} Object with tooltip styles. */ static getStyles(): ITooltipStyles; /** * Method returns object which can be used to render tooltip's text content. * * @param content Content to render in tooltip. * @returns {ITooltipProps} Tooltip properties. */ static renderContent(content: string | React.ReactElement | null): ITooltipProps; /** * Method returns object which can be used to render tooltip's content with custom HTML content. * * @param content HTML content to render in tooltip. * @returns {ITooltipProps} Tooltip properties. */ static renderHTMLContent(content: string): ITooltipProps; } //# sourceMappingURL=UITooltipUtils.d.ts.map