18 lines
402 B
TypeScript
18 lines
402 B
TypeScript
import { Props } from '@headlessui/react/dist/types'
|
|
import { MouseEventHandler, MutableRefObject } from 'react'
|
|
|
|
export type MouseEvent<T> = Parameters<MouseEventHandler<T>>[0]
|
|
|
|
export type PopoverProps = Props<
|
|
'div',
|
|
{
|
|
open: boolean
|
|
close(
|
|
focusableElement?:
|
|
| HTMLElement
|
|
| MutableRefObject<HTMLElement | null>
|
|
| MouseEvent<HTMLElement>,
|
|
): void
|
|
}
|
|
>
|