@cebus/react-toolbar
v0.0.6
Published
A toolbar component that displays important information and actions for an application.
Downloads
17
Readme
Toolbar
The Toolbar component displays important information and actions for an application.
Use
- Install the @cebus/react-toolbar component.
Using NPM
npm install @cebus/react-toolbar
Using Yarn
yarn add @cebus/react-toolbar
Install the @cebus/react-provider and our theme tokens from @cebus/react-theme
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>
)
}
- Integrate the Toolbar component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Toolbar } from '@cebus/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.