cf-component-text
Cloudflare Text Component
Installation
Installation with yarn is recommended
$ yarn add cf-component-text
Usage
import React from 'react';import Text from 'cf-component-text'; const TextComponent = <div> <p> Specify a <code>size</code> </p> <Text ="normal">Hello World</Text> <Text ="small">Hello World</Text> <Text ="normal" ="semi-bold"> Hello World </Text> <Text ="normal" ="bold"> Hello World </Text> <p> and/or an <code>align</code> </p> <Text ="start">Hello World</Text> <Text ="center">Hello World</Text> <Text ="justify">Hello World</Text> <Text ="end">Hello World</Text> <p> and/or a <code>type</code> </p> <Text ="info">Hello World</Text> <Text ="success">Hello World</Text> <Text ="warning">Hello World</Text> <Text ="error">Hello World</Text> <Text ="muted">Hello World</Text> <p> and/or a <code>case</code> </p> <Text ="capitalize">hello world</Text> <Text ="titlecase">hello world</Text> <Text ="lowercase">Hello World</Text> <Text ="uppercase">Hello World</Text> </div>; ;