Skip to content

Introduction

react-klinecharts-ui is a headless React library for building financial trading terminals on top of klinecharts. It provides a state provider, a set of hooks, and overlay templates. No UI components are included — use any UI framework you prefer (Tailwind, shadcn, Radix, MUI, plain CSS).

  • A state provider (KlinechartsUIProvider) that owns the chart instance, the current symbol, period, theme, timezone and indicator configuration.
  • 25+ composable hooks for periods, symbol search, indicators, drawing tools, order lines, alerts, replay, layouts, undo/redo, screenshots, data export and more.
  • Drawing-tool overlay templates — Fibonacci, Elliott waves, Gann boxes, harmonic patterns, position tools.
  • Custom indicator templates in TradingView style (Ichimoku, SuperTrend, VWAP, HMA, MA Ribbon, TV MACD/RSI/BOLL, …) plus a TA math library.

Everything visual: toolbars, dialogs, watchlists, context menus. The hooks give you reactive state and imperative actions; you decide how they look.

Reach for react-klinecharts-ui when you want a TradingView-like terminal with your own design system, rather than a pre-styled widget. If you only need a chart with a couple of indicators, plain react-klinecharts may be enough.

Many features — 11 TradingView-style indicators, 9 drawing overlays, the TA math library, undo/redo, layout manager and script editor — were ported from the QUANTIX Extended Edition fork of KLineChart-Pro by @dsavenk0. The original fork implements these as a tightly-coupled Vue 3 application; this library re-implements them as headless React hooks.

Continue to Installation.