@zag-js/preact
Version:
The preact wrapper for zag
12 lines (9 loc) • 391 B
text/typescript
import { JSX } from 'preact';
import { PropsWithChildren, RefObject } from 'preact/compat';
interface PortalProps {
disabled?: boolean | undefined;
container?: RefObject<HTMLElement> | undefined;
getRootNode?: (() => ShadowRoot | Document | Node) | undefined;
}
declare const Portal: (props: PropsWithChildren<PortalProps>) => JSX.Element;
export { Portal, type PortalProps };