UNPKG

@kiwicom/orbit-components

Version:

<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"

24 lines (21 loc) 1.07 kB
# ButtonGroup To implement ButtonGroup component into your project you'll need to add the import: ```jsx import ButtonGroup from "@kiwicom/orbit-components/lib/ButtonGroup"; ``` After adding import into your project you can use it simply like: ```jsx <ButtonLink> <Button>Hello</Button> <Button>World!</Button> </ButtonLink> ``` ## Props Table below contains all types of the props available in ButtonLink component. | Name | Type | Default | Description | | :------------ | :---------------------| :-------------- | :------------------------------- | | **children** | `React.Node` | | The content of the ButtonLink. [See Functional specs](#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**.