MCPcopy
hub / github.com/devias-io/material-kit-react / PopoverController

Interface PopoverController

src/hooks/use-popover.ts:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as React from 'react';
2
3interface PopoverController<T> {
4 anchorRef: React.MutableRefObject<T | null>;
5 handleOpen: () => void;
6 handleClose: () => void;
7 handleToggle: () => void;
8 open: boolean;
9}
10
11export function usePopover<T = HTMLElement>(): PopoverController<T> {
12 const anchorRef = React.useRef<T>(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected