UNPKG

@material/web

Version:
15 lines (14 loc) 532 B
/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * Returns `true` if the given element is in a right-to-left direction. * * @param el Element to determine direction from * @param shouldCheck Optional. If `false`, return `false` without checking * direction. Determining the direction of `el` is somewhat expensive, so * this parameter can be used as a conditional guard. Defaults to `true`. */ export declare function isRtl(el: HTMLElement, shouldCheck?: boolean): boolean;