# PortalProvider
A component that manages the rendering of portals for overlay components.
## Import
```tsx
import { PortalProvider } from '@coinbase/cds-web/overlays/PortalProvider'
```
## Examples
### Basic usage
The PortalProvider component is typically used at the root of your application to manage overlay components:
```tsx live
function Example() {
return (
Your app content
);
}
```
### Custom Portal Nodes
You can disable the default portal rendering and use the PortalNodes component separately:
```tsx live
function Example() {
return (
Your app content
);
}
```
### Toast Example
The PortalProvider's `toastBottomOffset` prop sets the default bottom offset for all toasts:
```tsx live
function Example() {
function ToastDemo() {
const toast = useToast();
return (
);
}
return (
);
}
```
## Props
| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `renderPortals` | `boolean` | No | `true` | By default the PortalProvider will render portal nodes. Disable this if you want to use the PortalNodes component to render the nodes instead. |
| `toastBottomOffset` | `string \| number` | No | `-` | An optional, global override to individual Toasts bottomOffset prop. This value will be applied to all Toasts render via this Provider instance |