UNPKG

642 BTypeScriptView Raw
1import React, { CSSProperties, SVGProps } from 'react';
2interface TextProps {
3 scaleToFit?: boolean;
4 angle?: number;
5 textAnchor?: 'start' | 'middle' | 'end' | 'inherit';
6 verticalAnchor?: 'start' | 'middle' | 'end';
7 style?: CSSProperties;
8 lineHeight?: number | string;
9 breakAll?: boolean;
10 children?: string | number;
11 maxLines?: number;
12}
13export type Props = Omit<SVGProps<SVGTextElement>, 'textAnchor' | 'verticalAnchor'> & TextProps;
14export declare const Text: ({ x: propsX, y: propsY, lineHeight, capHeight, scaleToFit, textAnchor, verticalAnchor, fill, ...props }: Props) => React.JSX.Element;
15export {};