components
Portal
A component that renders content outside the main DOM hierarchy, useful for modals, tooltips, or overlays that need to escape parent styling or positioning constraints. This component is a wrapper around the portal attachment.
This component wraps portal attachment and exposes its behavior as a component.
portal content
target
API Reference
PortalProps
| Property | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Enable/disable portal |
target | union | "body" | Portal target |
children | Snippet | Portal content to render |
Examples
Advanced
Toggle portal and change targetSource
Portal content
Target 1
Target 2