@cebus/react-provider
v0.0.1
Published
A provider control that handles theme tokens for a web page.
Downloads
15
Readme
Provider
The Provider control is what applies theme tokens to the web page.
Use
- Install the @cebus/react-provider component.
Using NPM
npm install @cebus/react-provider
Using Yarn
yarn add @cebus/react-provider
Install a component @cebus/react-button 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 Button component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Button } from '@cebus/react-button'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Button>Hello World</Button>
<Provider>
)
}
API
This is a re export of the FluentUI FluentProvider. Both API's are identical. The packages only differ in default styling.