UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

17 lines 583 B
import * as React from 'react'; /** * A portal element that moves the viewport to a different part of the DOM. * By default, the portal element is appended to `<body>`. * * Documentation: [Base UI Toast](https://base-ui.com/react/components/toast) */ export declare function ToastPortal(props: ToastPortal.Props): React.JSX.Element; export declare namespace ToastPortal { interface Props { children?: React.ReactNode; /** * A parent element to render the portal element into. */ container?: HTMLElement | null | React.RefObject<HTMLElement | null>; } }