@spark-ui/components
Version:
Spark (Leboncoin design system) components.
14 lines (11 loc) • 416 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren, Ref } from 'react';
interface PortalProps {
/**
* An optional different container where the portaled content should be appended.
*/
container?: HTMLElement | null;
ref?: Ref<HTMLDivElement>;
}
declare const Portal: (props: PropsWithChildren<PortalProps>) => react_jsx_runtime.JSX.Element;
export { Portal };