Getting started
@pika-lab/react ships as an ESM package targeting React 19 (react and react-dom ^19.0.0).
#Install
bash
pnpm add @pika-lab/react#Use a component
tsx
import { Button } from "@pika-lab/react";
export function SaveAction() {
return <Button>Save</Button>;
}Component CSS is loaded by the JavaScript entry automatically. No separate global stylesheet import is required.
#Language
Built-in strings, such as the screen-reader label of a loading button, are English by default. Switch them with ConfigProvider:
tsx
import { ConfigProvider, zhCN } from "@pika-lab/react";
<ConfigProvider locale={zhCN}>…</ConfigProvider>;See ConfigProvider.