UNPKG

637 BTypeScriptView Raw
1import type { FunctionComponent, SVGProps } from 'react';
2import { BaseAxisProps, AxisInterval } from '../util/types';
3interface YAxisProps extends BaseAxisProps {
4 yAxisId?: string | number;
5 ticks?: (string | number)[];
6 width?: number;
7 height?: number;
8 mirror?: boolean;
9 orientation?: 'left' | 'right';
10 padding?: {
11 top?: number;
12 bottom?: number;
13 };
14 minTickGap?: number;
15 interval?: AxisInterval;
16 reversed?: boolean;
17 tickMargin?: number;
18}
19export type Props = Omit<SVGProps<SVGElement>, 'scale'> & YAxisProps;
20export declare const YAxis: FunctionComponent<Props>;
21export {};