@pongo-ui/react-divider
v0.0.14
Published
The divider helps separate content in a site.
Downloads
8
Readme
Divider
The Divider helps separate content in a site.
Use
- Install the @pongo-ui/react-divider component.
Using NPM
npm install @pongo-ui/react-divider
Using Yarn
yarn add @pongo-ui/react-divider
Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme
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>
)
}
- 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.