0.0.3 • Published 4 years ago
@omersalkanovic/react-trading-view v0.0.3
React TradingView Embeds
- React + TypeScript components for TradingView Embeds
- https://k-128.github.io/react-tradingview-embed/
Usage
npm install --save react-tradingview-embed
import { AdvancedChart } from "react-tradingview-embed";
const App = () => <AdvancedChart widgetProps={{"theme": "dark"}} />;
Missing widget props
import { AdvancedChart } from "react-tradingview-widget";
// If widgets props are missing, use widgetPropsAny
const App = () => <AdvancedChart widgetPropsAny={{"newProp": true}} />;
If redeclared, props set in widgetPropsAny will override those in widgetProps.
Widget support