0.0.2 • Published 4 years ago

@elemental-ui-alpha/popper v0.0.2

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

Popper

The usePopper hook is a utility to help with tethering an element to an anchor. It is used as a helper in components such as Tooltip and Popover.

import { usePopper } from '@elemental-ui-alpha/popper';

API

The hook is a thin wrapper around Popper.js, which allows a declarative approach. The signature is:

const [anchorRef, elementRef] = usePopper(isActive, configObject);