StatsHub Docs
Packages

ui-web

React 19 DOM primitives used by the docs app.

@statshub/ui-web contains Base UI-based DOM components. The docs app is its current workspace consumer.

import { Button } from "@statshub/ui-web/components/button";
import { cn } from "@statshub/ui-web/lib/utils";

The package declares Next 16, React 19, and React DOM 19 as peers. It is not compatible with the current apps/web stack, which uses Next 14 and React 18.

Components are published as TypeScript source through the package exports map. Base UI uses a render prop where Radix commonly uses asChild; use the package's existing wrappers and lib/as-child adapter rather than forwarding incompatible props.

The React Native counterpart is ui-native.