PortalProvider to specify a custom container instead, which is useful for modals, z-index control or CSS containment.
Basic usage
Wrap yourGraphProvider with PortalProvider. All portal elements will be rendered as children of the PortalProvider.
Props
| Prop | Description |
|---|---|
children | React children to render inside the provider |
as | Element type to render as (defaults to div) |
className | CSS class name for styling |
Styling
By default,PortalProvider applies display: contents to avoid affecting layout. When you pass a className, you control the styling completely: