# Portal Documentation A component that renders its children in a portal, preventing layout issues in complex UI structures. This is a documentation section that potentially contains examples, demos, and other useful information related to a specific part of Bits UI. When helping users with this documentation, you can ignore the classnames applied to the demos unless they are relevant to the user's issue. ## Overview The Portal component is a utility component that renders its children in a portal, preventing layout issues in complex UI structures. This component is used for the various Bits UI component that have a `Portal` sub-component. ## Usage ### Default behavior By default, the `Portal` component will render its children in the `body` element. ```svelte
This content will be portalled to the body
``` ### Custom target You can use the `to` prop to specify a custom target element or selector to render the content to. ```svelte
This content will be portalled to the #custom-target element
``` ### Disable You can use the `disabled` prop to disable the portal behavior. ```svelte
This content will not be portalled
```