react-ts-tradingview-widgets
Version:
This is a React component library for TradingView Widgets. TypeScript is fully supported for every component!
39 lines (38 loc) • 1.2 kB
TypeScript
import React from "react";
import { ColorTheme, DateRange, CopyrightStyles, Locales } from "../index";
export type MarketOverviewSymbol = {
s: string;
d?: string;
};
export type MarketOverviewTab = {
title: string;
symbols: MarketOverviewSymbol[];
originalTitle: string;
};
export type MarketOverviewProps = {
colorTheme?: ColorTheme;
dateRange?: DateRange;
showChart?: boolean;
locale?: Locales;
largeChartUrl?: string;
isTransparent?: boolean;
showSymbolLogo?: boolean;
showFloatingTooltip?: boolean;
width?: string | number;
height?: string | number;
autosize?: boolean;
plotLineColorGrowing?: string;
plotLineColorFalling?: string;
gridLineColor?: string;
scaleFontColor?: string;
belowLineFillColorGrowing?: string;
belowLineFillColorFalling?: string;
belowLineFillColorGrowingBottom?: string;
belowLineFillColorFallingBottom?: string;
symbolActiveColor?: string;
tabs?: MarketOverviewTab[];
children?: never;
copyrightStyles?: CopyrightStyles;
};
declare const _default: React.NamedExoticComponent<MarketOverviewProps>;
export default _default;