npm.io
0.0.18 • Published 4 years ago

@pongo-ui/react-text

Licence
MIT
Version
0.0.18
Deps
3
Size
175 kB
Vulns
0
Weekly
0
Stars
5

Text

The Text control standardizes font styling across a webpage.

Use

  1. Install the @pongo-ui/react-text component.

Using NPM

npm install @pongo-ui/react-text

Using Yarn

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

  2. Set up the provider in your app:

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

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Link component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Text } from '@pongo-ui/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.