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
Description
The floating positioning library itself may be found at https://floating-ui.com/
Published: 26 May 2024
README
"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.
Dependencies (10)
-
js_of_ocaml-ppx
>= "5.1.1" & < "5.7.0"
-
js_of_ocaml
>= "5.1.1" & < "5.7.0"
-
gen_js_api
>= "1.0.8"
-
dune
>= "3.11.0"
-
virtual_dom
>= "v0.17" & < "v0.18"
-
ppx_jane
>= "v0.17" & < "v0.18"
-
ppx_css
>= "v0.17" & < "v0.18"
-
js_of_ocaml_patches
>= "v0.17" & < "v0.18"
-
core
>= "v0.17" & < "v0.18"
-
ocaml
>= "5.1.0"
Dev Dependencies
None
Used by
None
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page