Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
__snapshots__
__tests__
ButtonGroup.stories.js
README.md
index.js
index.js.flow

README.md

ButtonGroup

To implement ButtonGroup component into your project you'll need to add the import:

import ButtonGroup from "@kiwicom/orbit-components/lib/ButtonGroup";

After adding import into your project you can use it simply like:

<ButtonGroup>
  <Button>Hello</Button>
  <Button>World!</Button>
</ButtonGroup>

Props

Table below contains all types of the props available in ButtonGroup component.

Name Type Default Description
children React.Node The content of the ButtonGroup. See Functional specs
connected string | React.Node "button" If true, there will not be any spaces between individual Buttons/ButtonLinks.
dataTest string Optional prop for testing purposes.

Functional specs

  • Either Button or ButtonLink components are allowed in children.