There is a lot of typography variant in the design system, we need to create a reusable component for easier using it in every app. Here is the list of the variants:
Display
Text
Each variant has sizes. The display variant has 6 sizes and the text variant has 5 sizes.
Please create a component named Typography with two props variant and size, here is the example:
Change the acceptance criteria based on PR #7 that there is only one prop for defining the type and size of the typography. More information can take a look at this #7
Description
There is a lot of typography variant in the design system, we need to create a reusable component for easier using it in every app. Here is the list of the variants:
Each variant has sizes. The display variant has 6 sizes and the text variant has 5 sizes.
Please create a component named
Typography
with two propsvariant
andsize
, here is the example:Acceptance Criteria
Typography
size
,as
(for the custom HTML tag), andclassName
prop.display
andtext
because each variant has a different size.Reference