v0.1.2
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

PropertyTypeDefaultDescription
enabled
boolean
trueEnable/disable portal
target
union
"body"Portal target
children
Snippet
Portal content to render

Examples

Advanced

Toggle portal and change target
Source
Portal content
Target 1
Target 2