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

docs(Label): fix pointing docs #537

Merged
merged 1 commit into from
Sep 23, 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
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