UNPKG

@melt-ui/svelte

Version:
7 lines (6 loc) 281 B
import type { TextDirection } from '../types.js'; /** * Detects the text direction in the element. * @returns {TextDirection} The text direction ('ltr' for left-to-right or 'rtl' for right-to-left). */ export declare function getElemDirection(elem: HTMLElement): TextDirection;