@pongo-ui/react-divider
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pongo-ui/react-divider

Weekly Downloads

2

Version

0.0.14

License

MIT

Unpacked Size

94.6 kB

Total Files

108

Last publish

Collaborators

  • pongobuild
  • czearing