@corvaui/react
v0.2.1
Published
React components for CorvaUI.
Readme
@corvaui/react
Native React components for CorvaUI.
npm install @corvaui/react @corvaui/tokens react react-domimport "@corvaui/tokens/css";
import "@corvaui/react/styles.css";
import { Button } from "@corvaui/react";
export function SaveAction() {
return <Button variant="primary">Save</Button>;
}Production charts accept application records directly and include keyboard-accessible marks, shared tooltips, responsive SVG rendering, reduced-motion behavior, and a semantic table fallback:
import { Chart } from "@corvaui/react";
<Chart
annotations={[{ label: "Launch", tone: "info", x: "Apr" }]}
controls={["crosshair", "zoom", "range", "data-table", "download", "fullscreen"]}
data={revenueRows}
label="Revenue trajectory"
series={[{ key: "actual", type: "area" }, { key: "target", type: "line" }]}
type="area"
xKey="month"
/>The supported production 2D families are bar, line, area, scatter, bubble, pie, donut, sparkline, histogram, box plot, radar, and gauge. Exact-value tooltips and a token-themed crosshair are available by default. Opt-in controls add range navigation, zoom, pan, reset, data-table visibility, fullscreen, and CSV/SVG/PNG export. Default series, control, annotation, and export colors resolve from the nearest active CorvaUI theme.
Apply a data-corva-theme value to the document or a scoped container. See CorvaUI documentation for component APIs, routing adapters, accessibility guidance, and theme names. Supported runtimes and browsers are defined in the included support policy.
