0.0.3 • Published 2 years ago

@cebus/react-text v0.0.3

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

Text

The Text control standardizes font styling across a webpage.

Use

  1. Install the @cebus/react-text component.

Using NPM

npm install @cebus/react-text

Using Yarn

yarn add @cebus/react-text
  1. Install the @cebus/react-provider and our theme tokens from @cebus/react-theme

  2. Set up the provider in your app:

import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Link component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Text } from '@cebus/react-link'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Text>Hello World</Text>
    <Provider>
  )
}

API

To learn more about the Text API take a look at the Text Interface file.