A headless popover content component that manages focus trapping, dismissal logic, and Popper positioning for accessible overlays.
<!--
Source: https://github.com/unovue/reka-ui | License: MIT | Copyright 2023 UnoVue
Provided via justclaw.it.com; keep this notice with the code.
-->
<script lang="ts">
import type {
DismissableLayerEmits,
DismissableLayerProps,
} from '@/DismissableLayer'
import type { FocusScopeProps } from '@/FocusScope'
import type { PopperContentProps } from '@/Popper'
import { reactiveOmit } from '@vueuse/shared'
export type PopoverContentImplEmits = DismissableLayerEmits & {
/**
* Event handler called when auto-focusing on open.
* Can be prevented.
*/
openAutoFocus: [event: Event]
/**
* Event handler called when auto-focusing on close.
* Can be prevented.
*/
closeAutoFocus: [event: Event]
}
export interface PopoverContentImplProps extends PopperContentProps, Dis
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key