0.27.1 • Published 5 years ago

@comparaonline/ui-typography v0.27.1

Weekly downloads
8
License
MIT
Repository
-
Last release
5 years ago

@comparaonline/ui-typography

Installation

yarn add @comparaonline/ui-typography

Usage

import Typography from '@comparaonline/ui-typography';

return <Typography variant={variant} tag={htmlTag} color={color} />;

The possible values of variant are defined by @comparaonoline/ui-theme and are:

prop namerequiredtypedefaultdescription
varianttrueenum 'display4', 'display3', 'display2', 'display1', 'body1', 'body2', 'caption', 'headline', 'subheading', 'title''body1'The variant to be applied
tagtruestring'span'The HTML tag to be used to render the component
colorfalseenum 'primary', 'secondary', 'hint', 'disabled'A color to overwrite the value defined in the theme