@visx/shape
Version:
visx shape
21 lines • 700 B
TypeScript
import type { Ref } from 'react';
import type { AddSVGProps } from '../types';
interface Point {
x?: number;
y?: number;
}
export type LineProps = {
/** className to apply to line element. */
className?: string;
/** reference to line element. */
innerRef?: Ref<SVGLineElement>;
/** fill color applied to line element. */
fill?: string;
/** Starting x,y point of the line. */
from?: Point;
/** Ending x,y point of the line. */
to?: Point;
};
export default function Line({ from, to, fill, className, innerRef, ...restProps }: AddSVGProps<LineProps, SVGLineElement>): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=Line.d.ts.map