@pongo-ui/react-provider
v0.0.5
Published
The Pongo provider control that handles theme tokens for the web page.
Downloads
4
Readme
Provider
The Provider control is what applies theme tokens to the web page.
Use
- Install the @pongo-ui/react-provider component.
Using NPM
npm install @pongo-ui/react-provider
Using Yarn
yarn add @pongo-ui/react-provider
Install a component @pongo-ui/react-button 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 { Button } from '@pongo-ui/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.