package virtual_dom_toplayer
OCaml bindings for the floating positioning library for 'toplevel' virtual dom components
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=b525b0ba3607f142d417fe6edf1a08dbed86ae4e817680fb9bc191959b7a3aea
README.md.html
"Vdom Popover, Tooltip"
This library contains vdom utils for creating and positioning popovers, tooltips, and modals.
Positioning is done via floating_positioning
: bindings to the "floating ui" JS library.
Placement is done through a combination of the browser top-layer and portaling. This enables a convenient API, where all users need to do is attach a Vdom.Attr.t
to the popover / tooltip's anchor element.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>