@elitechart/react
Documentation / @elitechart/react
@elitechart/react — minimal headless React adapter for the
ChartForge charting engine.
Three exports power 99% of integrations:
- Chart —
<Chart />primitive, mountscreateChart()and exposes the engine handle through a forwarded ref. - useChart — reactive hook that returns the live
ChartHandleonce the chart has booted (nullbefore). - useChartTheme —
[theme, setTheme]tuple that pushes every theme change throughchart.setTheme(theme).
The bundle prepends 'use client'; (see tsup.config.ts) so the
package can be imported directly from a Next.js App Router server
component without manual client-component boilerplate.