tetra-ui Logotetra ui

Portal

Renders children into a different part of the app.

Installation

npx shadcn@latest add @tetra-ui/portal

Usage

import { PortalHost } from "@/components/ui/portal";
export default function RootLayout() {
  return (
    <>
      <Stack />
      <PortalHost />
    </>
  );
}

On this page