UNPKG

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