index.js 784 B

123456789101112131415161718192021
  1. import Base from './Base';
  2. import Link from './Link';
  3. import Paragraph from './Paragraph';
  4. import Text from './Text';
  5. import Title from './Title';
  6. import Typography from './Typography';
  7. Typography.Text = Text;
  8. Typography.Title = Title;
  9. Typography.Paragraph = Paragraph;
  10. Typography.Link = Link;
  11. Typography.Base = Base;
  12. Typography.install = function (app) {
  13. app.component(Typography.name, Typography);
  14. app.component(Typography.Text.displayName, Text);
  15. app.component(Typography.Title.displayName, Title);
  16. app.component(Typography.Paragraph.displayName, Paragraph);
  17. app.component(Typography.Link.displayName, Link);
  18. return app;
  19. };
  20. export { Text as TypographyText, Title as TypographyTitle, Paragraph as TypographyParagraph, Link as TypographyLink };
  21. export default Typography;