@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
10 lines (9 loc) • 426 B
TypeScript
import { Position } from '../types';
/**
* Calculates the box and arrow position.
*/
export declare const calculatePosition: (triggerEl: HTMLElement, boxEl: HTMLDivElement | null, headerEl: HTMLHeadingElement | null, arrowEl: SVGSVGElement, position: Position, space: number) => void;
/**
* Generates CSS transition classes.
*/
export declare const generateCSSTransitionClasses: (key: string, duration: number) => string;