VBI React
@visactor/vbi-react is the React adapter layer for @visactor/vbi, responsible for integrating VBIChartBuilder into the React component tree.
Current exports are split into two layers:
- Root export
@visactor/vbi-react:useVBI,useVSeed,useChartType,useDimensions,useMeasures,useWhereFilter,useHavingFilter - Sub-path export
@visactor/vbi-react/components:BuilderLayout,ChartRenderer,ChartTypeSelector,FieldPanel
Purpose
- State subscription and rendering encapsulation for React 18+
- Uses
VBIChartBuilderas the Single Source of Truth (SSOT) — no additional business state copies - Ideal for building BI configuration panels, chart preview areas, and DSL debug panels
Installation
Standard installation:
For local development within this monorepo, use workspace dependencies:
Quick Start
The example below demonstrates the minimal closed loop with useVBI + useVSeed: