useFocusTrap

Import

import { useFocusTrap } from '@feugene/granularity/composables/useFocusTrap'

Exports

UseFocusTrapOptionsinterface
interface UseFocusTrapOptions
useFocusTrapfunction
function useFocusTrap(container: Ref<HTMLElement | null>, options?: UseFocusTrapOptions): void

Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.

Library prose

Read it in the repository: docs/overlays.md

Source: @feugene/granularity 0.41.0, package.json#exports and dist/types