Portal
Rendering element outside the DOM of parent component.
# API
# PortalConfig
Property | Description | Default |
---|---|---|
target? |
string | HTMLElement DOM element or CSS selector to be appended to. |
— |
# PortalReturn
Property | Description |
---|---|
usePortal |
Action<HTMLElement, PortalConfig> Action on the element that need to be "portalled". |
target |
Writable<string | HTMLElement | undefined> Controlled DOM element or CSS selector to be appended to. |