@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
15 lines (14 loc) • 501 B
TypeScript
export interface ClientOnlyProps {
/**
* The content to render on the client side.
*
* **Note:** Use the function pattern when accessing browser-only APIs.
*/
children: React.ReactNode | (() => React.ReactNode);
/**
* The fallback content to render while the component is mounting on the client
* side.
*/
fallback?: React.ReactNode | undefined;
}
export declare const ClientOnly: (props: ClientOnlyProps) => import("react/jsx-runtime").JSX.Element;