Top
ButtonGroup - Getting started
ButtonGroup
Zippytech React Toolkit is distributed via npm. So getting it installed is as easy as:
$ npm install @zippytech/react-toolkit --save
Or, if you are using yarn you have to run:
$ yarn add @zippytech/react-toolkit
To start using the <ButtonGroup /> component, all you need to import is React, the code and styles of the component itself: @zippytech/react-toolkit/ButtonGroup and @zippytech/react-toolkit/ButtonGroup/index.css.
Each of the buttons can render an icon, using the Button's icon prop.
This is the most basic setup for a <ButtonGroup />. In the following sections we'll explore how to use the <ButtonGroup /> in various scenarios, supported props, callbacks and styling.