index.tsx 682 B

123456789101112131415161718192021222324
  1. import BaseTypography from './typography';
  2. import Text from './text';
  3. import Title from './title';
  4. import Paragraph from './paragraph';
  5. export type TypographyType = typeof BaseTypography & {
  6. Text: typeof Text;
  7. Title: typeof Title;
  8. Paragraph: typeof Paragraph;
  9. };
  10. const Typography = BaseTypography as TypographyType;
  11. Typography.Text = Text;
  12. Typography.Title = Title;
  13. Typography.Paragraph = Paragraph;
  14. export { BaseTypographyProps } from './base';
  15. export { CopyableProps } from './copyable';
  16. export { TitleProps } from './title';
  17. export { TextProps } from './text';
  18. export { ParagraphProps } from './paragraph';
  19. export * from './interface';
  20. export default Typography;