bits-ui
Version:
The headless components for Svelte.
21 lines (20 loc) • 459 B
TypeScript
import type { Snippet } from "svelte";
export type PortalTarget = Element | string;
export type PortalProps = {
/**
* Where to portal the content to.
*
* @default document.body
*/
to?: PortalTarget;
/**
* Disable portalling and render the component inline
*
* @defaultValue false
*/
disabled?: boolean;
/**
* The children content to render within the portal.
*/
children?: Snippet;
};