Skip to content

About

A set of common components I use on my sites.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

react-common

A set of common components I use on my sites.

Theme stack is @wrksz/themes (Next.js 16+); add it as a dependency alongside this package. Import theme primitives from @icco/react-common only (no direct @wrksz/themes imports required):

  • ThemeProvider — @icco/react-common or @icco/react-common/ThemeProvider; thin wrapper around @wrksz/themes/next (async Server Component for root layout.tsx). Defaults attribute="data-theme" (matches daisyUI/Tailwind [data-theme=*]), storage="hybrid", and disableTransitionOnChange to avoid SSR theme flash; pass any prop to override.
  • ClientThemeProvider / useTheme — @icco/react-common or @icco/react-common/ClientThemeProvider; for "use client" trees (nested providers, custom toggles).

About

A set of common components I use on my sites.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages