UNPKG

radix-vue

Version:

Vue port for Radix UI Primitives.

10 lines (9 loc) 553 B
import { type MaybeElementRef } from '@vueuse/core'; /** * The `useHideOthers` function is a TypeScript function that takes a target element reference and * hides all other elements in ARIA when the target element is present, and restores the visibility of the * hidden elements when the target element is removed. * @param {MaybeElementRef} target - The `target` parameter is a reference to the element that you want * to hide other elements when it is clicked or focused. */ export declare function useHideOthers(target: MaybeElementRef): void;