0.0.1 • Published 2 years ago

@pongo-ui/react-form v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Button

The Button controls allow users to make an action through a press.

Use

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

Using NPM

npm install @pongo-ui/react-button

Using Yarn

yarn add @pongo-ui/react-button
  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 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.