@tensor_1/react
v2.7.0
Published
Thin React wrappers over the UIx v2 CSS component library.
Readme
@tensor_1/react
Thin React wrappers over the UIx v2 CSS component library — every component is driven by the @tensor_1/tokens --uix-* contract.
Install
npm i @tensor_1/react @tensor_1/tokensPeer deps: react / react-dom (^18 or ^19).
Use
Load the token CSS once (see @tensor_1/tokens), then import components:
import { Button, Card } from "@tensor_1/react";
export default function Example() {
return (
<Card>
<Button>Save</Button>
</Card>
);
}Charts (ECharts) live behind a separate entry so they stay out of the main bundle:
import { Chart } from "@tensor_1/react/chart";Ships ESM + CJS + types, with per-file "use client" so it's safe under React Server Components. Part of the UIx v2 styleguide.
