UNPKG

@agnos-ui/core

Version:

Framework-agnostic headless component library.

8 lines (7 loc) 271 B
/** * Returns the text direction of an element, using a call to `getComputedStyle`. * * @param element - the HTML element * @returns the text direction of the element, 'ltr' or 'rtl' */ export declare const getTextDirection: (element: HTMLElement) => "ltr" | "rtl";