@gpa-gemstone/react-forms
Version:
React Form modules for gpa webapps
27 lines (26 loc) • 831 B
TypeScript
import * as React from 'react';
interface IProps {
/**
* Flag to show or hide the tooltip.
*/
Show: boolean;
/**
* Optional position for the tooltip. If not provided, 'top' is used.
*/
Position?: Position;
/**
* If provided, the tooltip will look for an element with a matching data-tooltip attribute to position itself to.
*/
Target?: string;
/**
* Optional z-index for the tooltip. Defaults to 9999.
*/
Zindex?: number;
/**
* Optional class to style the tooltip. Uses Bootstrap alert classes if provided.
*/
Class?: 'primary' | 'secondary' | 'success' | 'danger' | 'info';
}
type Position = 'top' | 'bottom' | 'left' | 'right';
export declare const Tooltip: (props: React.PropsWithChildren<IProps>) => JSX.Element;
export default Tooltip;