npm.io
0.0.19 • Published 4 years ago

@pongo-ui/react-toolbar

Licence
MIT
Version
0.0.19
Deps
6
Size
151 kB
Vulns
0
Weekly
0
Stars
4

Toolbar

The Toolbar component displays important information and actions for an application.

Use

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

Using NPM

npm install @pongo-ui/react-toolbar

Using Yarn

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

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

API

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