1.0.2 • Published 4 years ago
style-component-library v1.0.2
React style-components Ui-Kit
Installation
style-component-library
are served as an npm package.
Add them to your project by running:
// with npm
npm install style-component-library
Don't forget to install the styled-components ^4.0.0
also.
Typography
To implement Typography component into your project you'll need to import:
import { Typography } from "style-component-library";
After import into your project you can use it simply like:
<Typography as="h1">Heading h1</Typography>
Props
Table below contains all types of the props available in Typography component.
Name | Type | Default | Description |
---|---|---|---|
as | h1, h2, h3, h4, h5, h6, p, div | div | The content of the Typography. |