1.0.1 • Published 3 years ago

@acodez/typography v1.0.1

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

@acodez/typography

npm_version license

React typography component.



Installation

npm install @acodez/typography

Props API

PropertyTypeRequiredDescription
typestringnodeclare the type of the text element, choose from h1, h2, h3,h4, h5, h6, p, etc
sizestringnofont size, choose from sm, md, lg
colorstringnocolor scheme, choose from primary, secondary, warning, success, danger, info, dark, light
decorationstringnotext decoration, choose from strike, underline, overline

Usage

import Text from "@acodez/typography";

Example

<Text type="h1">Heading 1 text</Text>

Example - more options

<Text type="p" decoration="strike" color="warning">This is a paragraph text with a color scheme of warning, and as you can see, texts are striked.</Text>
1.0.1

3 years ago

1.0.0

3 years ago