@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
26 lines (25 loc) • 782 B
TypeScript
import { ReactNodeOrFunction } from "../../utils/index.types.js";
import { FC, ReactNode } from "react";
//#region src/components/client-only/client-only.d.ts
interface ClientOnlyProps {
/**
* The content to render on the client side.
*
* **Note:** Use the function pattern when accessing browser-only APIs.
*/
children: ReactNodeOrFunction;
/**
* The fallback content to render while the component is mounting on the client
* side.
*/
fallback?: ReactNode;
}
/**
* `ClientOnly` is a component that renders its children only on the client side.
*
* @see https://yamada-ui.com/docs/components/client-only
*/
declare const ClientOnly: FC<ClientOnlyProps>;
//#endregion
export { ClientOnly, ClientOnlyProps };
//# sourceMappingURL=client-only.d.ts.map