122 components

Portal@djangocfg/ui-nextjs

Renders children into a different part of the DOM (similar to MUI Portal)

Portal renders children into document.body by default, useful for:
  • Modals and dialogs
  • Tooltips and popovers
  • Fixed-position elements
  • Avoiding z-index stacking issues

Container with overflow:hidden

Inside overflow container
Clipped by overflow

Toggle "Enable Portal" to see the difference between rendering at document.body vs. in the DOM tree

Import

Loading code...