Portal
Portal Component
Playground
Portal content (inline demo)
Props
| Prop | Type | Default | Value |
|---|---|---|---|
| disablePortal | boolean | — |
Default
Portal content (inline demo)
WithStyledContent
Portal renders this in a separate DOM node
WithMultipleChildren
Child A
Child B
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
disablePortal | boolean | — | Render inline instead of in portal |
Using Portaltsx
import { Portal } from '@/components/Portal'
<Portal
disablePortal="..."
/>Tokens Used
No design tokens detected