UNPKG

897 BTypeScriptView Raw
1import * as React from 'react';
2import { OUIAProps } from '../../helpers';
3export declare enum TextVariants {
4 h1 = "h1",
5 h2 = "h2",
6 h3 = "h3",
7 h4 = "h4",
8 h5 = "h5",
9 h6 = "h6",
10 p = "p",
11 a = "a",
12 small = "small",
13 blockquote = "blockquote",
14 pre = "pre"
15}
16export interface TextProps extends React.HTMLProps<HTMLElement>, OUIAProps {
17 /** The text component */
18 component?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'a' | 'small' | 'blockquote' | 'pre';
19 /** Content rendered within the Text */
20 children?: React.ReactNode;
21 /** Additional classes added to the Text */
22 className?: string;
23 /** Flag to indicate the link has visited styles applied if the browser determines the link has been visited */
24 isVisitedLink?: boolean;
25}
26export declare const Text: React.FunctionComponent<TextProps>;
27//# sourceMappingURL=Text.d.ts.map
\No newline at end of file