Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(Button): update docs to the latest standards, add missing prop … #756

Merged
merged 1 commit into from
Oct 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonConditionalsExample = () => (
const ButtonExampleConditionals = () => (
<Button.Group>
<Button>Cancel</Button>
<Button.Or />
<Button positive>Save</Button>
</Button.Group>
)

export default ButtonConditionalsExample
export default ButtonExampleConditionals
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonMultipleConditionalsExample = () => (
const ButtonExampleMultipleConditionals = () => (
<Button.Group>
<Button>One</Button>
<Button.Or />
Expand All @@ -11,4 +11,4 @@ const ButtonMultipleConditionalsExample = () => (
</Button.Group>
)

export default ButtonMultipleConditionalsExample
export default ButtonExampleMultipleConditionals
6 changes: 3 additions & 3 deletions docs/app/Examples/elements/Button/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const ButtonContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Conditionals'
description='Button groups can contain conditionals'
examplePath='elements/Button/Content/ButtonConditionalsExample'
description='Button groups can contain conditionals.'
examplePath='elements/Button/Content/ButtonExampleConditionals'
/>
<ComponentExample
examplePath='elements/Button/Content/ButtonMultipleConditionalsExample'
examplePath='elements/Button/Content/ButtonExampleMultipleConditionals'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button, Divider } from 'semantic-ui-react'

const ButtonGroupBasicExample = () => (
const ButtonExampleGroupBasic = () => (
<div>
<Button.Group basic>
<Button>One</Button>
Expand All @@ -17,4 +17,4 @@ const ButtonGroupBasicExample = () => (
</div>
)

export default ButtonGroupBasicExample
export default ButtonExampleGroupBasic
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupBasicColoredExample = () => (
const ButtonExampleGroupBasicColored = () => (
<Button.Group>
<Button basic color='red'>One</Button>
<Button basic color='green'>Two</Button>
<Button basic color='blue'>Three</Button>
</Button.Group>
)

export default ButtonGroupBasicColoredExample
export default ButtonExampleGroupBasicColored
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupColoredExample = () => (
const ButtonExampleGroupColored = () => (
<Button.Group color='blue'>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
)

export default ButtonGroupColoredExample
export default ButtonExampleGroupColored
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button, Divider } from 'semantic-ui-react'

const ButtonGroupEqualWidthExample = () => (
const ButtonExampleGroupEqualWidth = () => (
<div>
<Button.Group widths='5'>
<Button>Overview</Button>
Expand All @@ -19,4 +19,4 @@ const ButtonGroupEqualWidthExample = () => (
</div>
)

export default ButtonGroupEqualWidthExample
export default ButtonExampleGroupEqualWidth
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button, Icon } from 'semantic-ui-react'

const ButtonGroupIconExample = () => (
const ButtonExampleGroupIcon = () => (
<Button.Group icon>
<Button>
<Icon name='play' />
Expand All @@ -15,4 +15,4 @@ const ButtonGroupIconExample = () => (
</Button.Group>
)

export default ButtonGroupIconExample
export default ButtonExampleGroupIcon
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupIconShorthandExample = () => (
const ButtonExampleGroupIconShorthand = () => (
<Button.Group>
<Button icon='play' />
<Button icon='pause' />
<Button icon='shuffle' />
</Button.Group>
)

export default ButtonGroupIconShorthandExample
export default ButtonExampleGroupIconShorthand
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupIconSizeExample = () => (
const ButtonExampleGroupIconSize = () => (
<Button.Group basic size='small'>
<Button icon='file' />
<Button icon='save' />
Expand All @@ -10,4 +10,4 @@ const ButtonGroupIconSizeExample = () => (
</Button.Group>
)

export default ButtonGroupIconSizeExample
export default ButtonExampleGroupIconSize
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupLabeledIconExample = () => (
const ButtonExampleGroupLabeledIcon = () => (
<Button.Group labeled>
<Button icon='play' content='Play' />
<Button icon='pause' content='Pause' />
<Button icon='shuffle' content='Shuffle' />
</Button.Group>
)

export default ButtonGroupLabeledIconExample
export default ButtonExampleGroupLabeledIcon
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupMixedExample = () => (
const ButtonExampleGroupMixed = () => (
<Button.Group>
<Button labelPosition='left' icon='left chevron' content='Back' />
<Button icon='stop' content='Stop' />
<Button labelPosition='right' icon='right chevron' content='Forward' />
</Button.Group>
)

export default ButtonGroupMixedExample
export default ButtonExampleGroupMixed
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupOrSizeExample = () => (
const ButtonExampleGroupOrSize = () => (
<Button.Group size='large'>
<Button>One</Button>
<Button.Or />
<Button>Three</Button>
</Button.Group>
)

export default ButtonGroupOrSizeExample
export default ButtonExampleGroupOrSize
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupSizeExample = () => (
const ButtonExampleGroupSize = () => (
<Button.Group size='large'>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
)

export default ButtonGroupSizeExample
export default ButtonExampleGroupSize
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonGroupVerticalExample = () => (
<Button.Group attached='top'>
const ButtonExampleGroupVertical = () => (
<Button.Group attached='top' vertical>
<Button>Feed</Button>
<Button>Messages</Button>
<Button>Events</Button>
<Button>Photos</Button>
</Button.Group>
)

export default ButtonGroupVerticalExample
export default ButtonExampleGroupVertical
42 changes: 21 additions & 21 deletions docs/app/Examples/elements/Button/GroupVariations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,56 @@ const ButtonGroupVariationsExamples = () => (
<ExampleSection title='Group Variations'>
<ComponentExample
title='Vertical Group'
description='Groups can be formatted to appear vertically'
examplePath='elements/Button/GroupVariations/ButtonGroupVerticalExample'
description='Groups can be formatted to appear vertically.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupVertical'
/>
<ComponentExample
title='Icon Group'
description='Groups can be formatted as icons'
examplePath='elements/Button/GroupVariations/ButtonGroupIconExample'
description='Groups can be formatted as icons.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupIcon'
/>
<ComponentExample
description='Using shorthand icons formats each individual button as an icon button'
examplePath='elements/Button/GroupVariations/ButtonGroupIconShorthandExample'
description='Using shorthand icons formats each individual button as an icon button.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupIconShorthand'
/>
<ComponentExample
title='Labeled Icon Groups'
description='Groups can be formatted as labeled icons'
examplePath='elements/Button/GroupVariations/ButtonGroupLabeledIconExample'
description='Groups can be formatted as labeled icons.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupLabeledIcon'
/>
<ComponentExample
title='Mixed Group'
description='Groups can be formatted to use multiple button types together'
examplePath='elements/Button/GroupVariations/ButtonGroupMixedExample'
description='Groups can be formatted to use multiple button types together.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupMixed'
/>
<ComponentExample
title='Equal Width'
description='Groups can have their widths divided evenly'
examplePath='elements/Button/GroupVariations/ButtonGroupEqualWidthExample'
description='Groups can have their widths divided evenly.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupEqualWidth'
/>
<ComponentExample
title='Colored Group'
description='Groups can have a shared color'
examplePath='elements/Button/GroupVariations/ButtonGroupColoredExample'
description='Groups can have a shared color.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupColored'
/>
<ComponentExample
title='Basic Group'
description='A button group can be less pronounced'
examplePath='elements/Button/GroupVariations/ButtonGroupBasicExample'
description='A button group can be less pronounced.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupBasic'
/>
<ComponentExample
examplePath='elements/Button/GroupVariations/ButtonGroupBasicColoredExample'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupBasicColored'
/>
<ComponentExample
title='Group Sizes'
description='Groups can have a shared size'
examplePath='elements/Button/GroupVariations/ButtonGroupSizeExample'
description='Groups can have a shared size.'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupSize'
/>
<ComponentExample
examplePath='elements/Button/GroupVariations/ButtonGroupIconSizeExample'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupIconSize'
/>
<ComponentExample
examplePath='elements/Button/GroupVariations/ButtonGroupOrSizeExample'
examplePath='elements/Button/GroupVariations/ButtonExampleGroupOrSize'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonButtonsExample = () => (
const ButtonExampleGroup = () => (
<Button.Group>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
)

export default ButtonButtonsExample
export default ButtonExampleGroup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonIconButtonsExample = () => (
const ButtonExampleGroupIcon = () => (
<div>
<Button.Group>
<Button icon='align left' />
Expand All @@ -18,4 +18,4 @@ const ButtonIconButtonsExample = () => (
</div>
)

export default ButtonIconButtonsExample
export default ButtonExampleGroupIcon
8 changes: 4 additions & 4 deletions docs/app/Examples/elements/Button/Groups/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const ButtonGroupsExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Group'
description='Buttons can exist together as a group'
examplePath='elements/Button/Groups/ButtonGroupExample'
description='Buttons can exist together as a group.'
examplePath='elements/Button/Groups/ButtonExampleGroup'
/>
<ComponentExample
title='Icon Group'
description='Button groups can show groups of icons'
examplePath='elements/Button/Groups/ButtonGroupIconExample'
description='Button groups can show groups of icons.'
examplePath='elements/Button/Groups/ButtonExampleGroupIcon'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonActiveExample = () => (
const ButtonExampleActive = () => (
<Button active>Active</Button>
)

export default ButtonActiveExample
export default ButtonExampleActive
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonDisabledExample = () => (
const ButtonExampleDisabled = () => (
<Button disabled>Disabled</Button>
)

export default ButtonDisabledExample
export default ButtonExampleDisabled
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button } from 'semantic-ui-react'

const ButtonLoadingExample = () => (
const ButtonExampleLoading = () => (
<div>
<Button loading>Loading</Button>
<Button basic loading>Loading</Button>
Expand All @@ -10,4 +10,4 @@ const ButtonLoadingExample = () => (
</div>
)

export default ButtonLoadingExample
export default ButtonExampleLoading
Loading