@clayui/shared
Version:
ClayShared component
29 lines (28 loc) • 741 B
TypeScript
/**
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: BSD-3-Clause
*/
import React from 'react';
export interface IBaseProps {
/**
* Class to add to the root element
*/
className?: string;
/**
* Id fof the root element
*/
id?: string;
}
interface IProps extends IBaseProps {
children: React.ReactNode;
/**
* Ref of element to render portal into.
*/
containerRef?: React.RefObject<Element>;
/**
* Ref of element to render nested portals into.
*/
subPortalRef?: React.RefObject<Element>;
}
export declare const ClayPortal: ({ children, className, containerRef, id, subPortalRef, }: IProps) => JSX.Element;
export {};