npm

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

0.0.3 • Public • Published

Divider

The Divider helps separate content in a site.

Use

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

Using NPM

npm install @cebus/react-divider

Using Yarn

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

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

96.2 kB

Total Files

108

Last publish

Collaborators

  • czearing
  • pongobuild