0.0.11 • Published 2 years ago

@pongo-ui/react-switch v0.0.11

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

Switch

The Switch allows users to toggle a value between an on and off state.

Use

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

Using NPM

npm install @pongo-ui/react-switch

Using Yarn

yarn add @pongo-ui/react-switch
  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 Switch component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Switch } from '@pongo-ui/react-switch'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Switch/>
    <Provider>
  )
}

API

To learn more about the Switch API take a look at the Switch Interface file.

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago