@comparaonline/ui-typography

0.27.1 • Public • Published

@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 name required type default description
variant true enum 'display4', 'display3', 'display2', 'display1', 'body1', 'body2', 'caption', 'headline', 'subheading', 'title' 'body1' The variant to be applied
tag true string 'span' The HTML tag to be used to render the component
color false enum 'primary', 'secondary', 'hint', 'disabled' A color to overwrite the value defined in the theme

Dependents (6)

Package Sidebar

Install

npm i @comparaonline/ui-typography

Weekly Downloads

1

Version

0.27.1

License

MIT

Unpacked Size

19.5 kB

Total Files

10

Last publish

Collaborators

  • gnavarro
  • dsuarez_compa
  • pfariaz
  • ricardo.sosa
  • suarezcumare
  • fverag
  • comparaonline-dev
  • comparaonlineprivate
  • matotias
  • javierlara1989
  • smurua
  • eseceve
  • pablocompara