1.1.1 • Published 2 years ago

@pijma/switch v1.1.1

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

@pijma/switch

Switch component

Installation

yarn add @pijma/switch

npm i @pijma/switch

Usage

import { Switch, SwitchStylesB2cFactory } from '@pijma/switch'
import { ThemeProvider } from '@pijma/theme-provider'
import { light } from '@pijma/theme-b2c'

const App = () => <ThemeProvider theme={light} components={{Switch: SwitchStylesB2cFactory}}>
  <Switch id={'2'} label={'First'} value="First" />
</ThemeProvider>

Form

import { ThemeProvider } from '@pijma/theme-provider'
import { light } from '@pijma/theme-b2c'
import { Switch, SwitchStylesB2cFactory } from '@pijma/switch'

const App = () => <ThemeProvider theme={light} components={{Switch: SwitchStylesB2cFactory}}>
  <form>
    <Switch id={'2'} label={'First'} value="First" />
    <Switch id={'1'} label={'Second'} value="second" />
  </form>
</ThemeProvider>

See more on Storybook

1.1.1

2 years ago

1.0.19

2 years ago

1.1.0

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.20

2 years ago

1.0.15

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

0.2.3

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

0.2.5

2 years ago

1.0.12

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago