Skip to content

Commit

Permalink
docs(Label): fix pointing docs (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and levithomason committed Sep 23, 2016
1 parent c624407 commit f3a5532
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/app/Examples/elements/Label/Types/LabelPointing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const LabelPointing = () => (
<Divider />

<Form.Field>
<Label pointing below>Please enter a value</Label>
<Label pointing='below'>Please enter a value</Label>
<input type='text' placeholder='Last Name' />
</Form.Field>
<Divider />
Expand All @@ -22,8 +22,8 @@ const LabelPointing = () => (
<Divider />

<Form.Field inline>
<input type='password' placeholder='Password' />
<Label pointing='right'>Your password must be 6 characters or more</Label>
<input type='password' placeholder='Password' />
</Form.Field>
</Form>
)
Expand Down
31 changes: 31 additions & 0 deletions docs/app/Examples/elements/Label/Types/LabelPointingColored.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from 'react'
import { Divider, Form, Label } from 'stardust'

const LabelPointing = () => (
<Form>
<Form.Field>
<input type='text' placeholder='First name' />
<Label basic color='red' pointing>Please enter a value</Label>
</Form.Field>
<Divider />

<Form.Field>
<Label basic color='red' pointing='below'>Please enter a value</Label>
<input type='text' placeholder='Last Name' />
</Form.Field>
<Divider />

<Form.Field inline>
<input type='text' placeholder='Username' />
<Label basic color='red' pointing='left'>That name is taken!</Label>
</Form.Field>
<Divider />

<Form.Field inline>
<Label basic color='red' pointing='right'>Your password must be 6 characters or more</Label>
<input type='password' placeholder='Password' />
</Form.Field>
</Form>
)

export default LabelPointing
1 change: 1 addition & 0 deletions docs/app/Examples/elements/Label/Types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Types = () => (
description='A label can point to content next to it'
examplePath='elements/Label/Types/LabelPointing'
/>
<ComponentExample examplePath='elements/Label/Types/LabelPointingColored' />
</ExampleSection>
)

Expand Down

0 comments on commit f3a5532

Please sign in to comment.