@fluentui/dom-utilities

DOM utilities for use within Fluent web components

Usage no npm install needed!

<script type="module">
  import fluentuiDomUtilities from 'https://cdn.skypack.dev/@fluentui/dom-utilities';
</script>

README

@fluentui/dom-utilities

DOM Utilities for use within Fluent UI React

This package contains extensions for traversing DOM within Fluent components, which should generally be used instead of the native equivalents. Fluent supports the concept of 'layers', which leverage React 'Portals' to project popups and other overlay content over other content. However, since this is not a native DOM concept, this library provides functionality to traverse the DOM in a way which reflects the hierarchy established by the projections.