[]previous and next page

ClientOnlyProps

Props of ClientOnly.

Props of ClientOnly.

Import#

ts
import type { ClientOnlyProps } from "@shadow-js/web";

Signature#

ts
interface ClientOnlyProps {
  /**
   * Rendered on the server and while the page hydrates, until the browser has mounted.
   * @default undefined (nothing is rendered until mount)
   */
  readonly fallback?: JsxChild;
  /**
   * Rendered in the browser only, after mount.
   * @default undefined (nothing is rendered after mount either)
   */
  readonly children?: JsxChild | (() => unknown);
}

Members#

Name Type Description
fallback? readonly fallback?: JsxChild Rendered on the server and while the page hydrates, until the browser has mounted.
children? readonly children?: JsxChild | (() => unknown) Rendered in the browser only, after mount.