Skip to content

ThemeName

A string identifier for a built-in theme. Can be passed to the theme prop of <Chart> as a convenient alternative to providing a full Theme object.

ts
type ThemeName = 'light' | 'dark';
ValueDescription
'light'Default light theme
'dark'Default dark theme

Usage

tsx
<Chart theme="light" ... />
<Chart theme="dark" ... />

React Candlesticks is available on npm and GitHub under the MIT License.