-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Label): fix pointing docs (#537)
- Loading branch information
1 parent
c624407
commit f3a5532
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docs/app/Examples/elements/Label/Types/LabelPointingColored.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters