1 | import React, { CSSProperties, SVGProps } from 'react';
|
2 | interface 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 | }
|
13 | export type Props = Omit<SVGProps<SVGTextElement>, 'textAnchor' | 'verticalAnchor'> & TextProps;
|
14 | export declare const Text: ({ x: propsX, y: propsY, lineHeight, capHeight, scaleToFit, textAnchor, verticalAnchor, fill, ...props }: Props) => React.JSX.Element;
|
15 | export {};
|