1.0.8 • Published 4 years ago

@smashing/control-group v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago
yarn add @smashing/control-group

Default usage

npm.io

const ReactComponent = () => {
  const [value, setValue] = React.useState(1)

  return (
    <ControlGroup
      controlAppearance="flat"
      groupAppearance="button"
      onChange={v => setValue(v)}
      value={value}
      items={[
        {
          label: 'first button',
          value: 1
        },
        {
          label: 'second button',
          value: 2
        }
      ]}
    />
  )
}
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.0

4 years ago

1.0.3

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago