Skip to content
Stylhero 0.8.0
Components

Core

Layout and type

Inputs

Overlays

Navigation

Data display

Charts

Transitions and utilities

Page pieces (landing pages, portfolios, docs)

Icons

Components / Transitions and utilities

NoSsr

Renders children only in the browser, after hydration (e.g. things that read window or localStorage).

import { NoSsr } from "@stylhero/ui";

Example

Code
import { NoSsr, Skeleton, Text } from "@stylhero/ui";

function NoSsrExample() {
  return <NoSsr fallback={<Skeleton width={180} />}><Text>Local time: {new Date().toLocaleTimeString()}</Text></NoSsr>;
}

Props

PropTypeDefaultDescription
children required ReactNode -
fallback ReactNode null

Generated from src/utils.tsx. Something wrong or missing? Open an issue.