UNPKG

920 BTypeScriptView Raw
1import { HTMLAttributes, ElementType, Component, ComponentType } from "react";
2import CommonProps from '../util';
3
4export interface TextProps extends HTMLAttributes<HTMLElement>, CommonProps {
5 delete?: boolean;
6 mark?: boolean;
7 underline?: boolean;
8 strong?: boolean;
9 code?: boolean;
10 component?: ElementType;
11}
12
13export interface TitleProps extends TextProps {
14
15}
16
17export interface ParagraphProps extends TextProps {
18}
19
20export interface TypographyProps extends TextProps {}
21
22export default class Typography extends Component<TypographyProps, any> {
23 static H1: ComponentType<TitleProps>;
24 static H2: ComponentType<TitleProps>;
25 static H3: ComponentType<TitleProps>;
26 static H4: ComponentType<TitleProps>;
27 static H5: ComponentType<TitleProps>;
28 static H6: ComponentType<TitleProps>;
29 static Text: ComponentType<TextProps>;
30 static Paragraph: ComponentType<ParagraphProps>;
31}