@pongo-ui/react-button
v1.1.29
Published
A Button control that allows users to make an action through a press.
Downloads
12
Readme
Button
The Button controls allow users to make an action through a press.
Use
- Install the @pongo-ui/react-button component.
Using NPM
npm install @pongo-ui/react-button
Using Yarn
yarn add @pongo-ui/react-button
Install the @pongo-ui/react-provider 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
To learn more about the Button API take a look at the Button Interface file.