Skip to content

Commit

Permalink
docs(Button): add example for Button.Group
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed Khan committed Jan 29, 2017
1 parent e07212f commit ac209b6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonExampleGroupFloated = () => (
<div>
<Button.Group floated='left'>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
<Button.Group floated='right'>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
</div>
)

export default ButtonExampleGroupFloated
5 changes: 5 additions & 0 deletions docs/app/Examples/elements/Button/GroupVariations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'

const ButtonGroupVariationsExamples = () => (
<ExampleSection title='Group Variations'>
<ComponentExample
title='Floated Group'
description='Groups can be aligned to the left or right of its container.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupFloated'
/>
<ComponentExample
title='Vertical Group'
description='Groups can be formatted to appear vertically.'
Expand Down

0 comments on commit ac209b6

Please sign in to comment.