@smashing/control-group
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

yarn add @smashing/control-group

Default usage

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
        }
      ]}
    />
  )
}

Readme

Keywords

Package Sidebar

Install

npm i @smashing/control-group

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

38.9 kB

Total Files

15

Last publish

Collaborators

  • amroz123
  • hzub
  • idered
  • mkolakowska
  • mzbiejczuk
  • qk