npm.io
0.0.14 • Published 4 years ago

@pongo-ui/react-divider

Licence
MIT
Version
0.0.14
Deps
4
Size
92 kB
Vulns
0
Weekly
0
Stars
4

Divider

The Divider helps separate content in a site.

Use

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

Using NPM

npm install @pongo-ui/react-divider

Using Yarn

yarn add @pongo-ui/react-divider
  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 Button component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Divider } from '@pongo-ui/react-divider'

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

API

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