1.0.6 • Published 2 years ago

@monstera/ui-components-text v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Text

The Text component is used for rendering copy in the app

Installation guide

yarn add @monstera/ui-components-text
# or
npm install @monstera/ui-components-text

Usage

import React from "react";
import {Text} from "@monstera/ui-components";

const MyApp = () => (
    <div>
        <Text type="hero">Welcome, John</Text>
        <Text type="h2">Lorem ipsum dolor sit amet.</Text>
    </div>
)

Props

NameTypeDefault ValueAvailable valuesDescription
typestringbodyhero h1 h2 h3 body captionApplies styling according to styleguide
disabledboolfalsetrue falseDisables button when value is true
classNamestring''customComponent can accept custom styling