Castle logo

CASTLE UI

Search

K

Portal is a component that allows you to render a component in a different part of the DOM, at the top level of the document. Useful for fixing z-index stacking contexts.

Usage

Import

import { Portal } from '@passfort/castle'

Copy

Example

The card you see below is rendered outside of its DOM hierarchy. Great for overlaying elements on top of the page.

Copy

live example

Contents