This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pkg): export Label SUIR component
- Loading branch information
Showing
3 changed files
with
50 additions
and
354 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## Simple Label | ||
|
||
const Label = require('semantic-ui-react').Label; | ||
const Icon = require('semantic-ui-react').Icon; | ||
<Label> | ||
<Icon name='mail' /> 23 | ||
</Label> | ||
|
||
## Form Labels | ||
|
||
const Form = require('semantic-ui-react').Form; | ||
const Divider = require('semantic-ui-react').Divider; | ||
const Label = require('semantic-ui-react').Label; | ||
<Form> | ||
<Form.Field> | ||
<input type='text' placeholder='First name' /> | ||
<Label pointing>Please enter a value</Label> | ||
</Form.Field> | ||
<Divider /> | ||
|
||
<Form.Field> | ||
<Label 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 pointing='left'>That name is taken!</Label> | ||
</Form.Field> | ||
<Divider /> | ||
|
||
<Form.Field inline> | ||
<Label pointing='right'>Your password must be 6 characters or more</Label> | ||
<input type='password' placeholder='Password' /> | ||
</Form.Field> | ||
<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> | ||
|
||
See full documentation [here](http://react.semantic-ui.com/elements/label) |
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,2 @@ | ||
import Label from 'semantic-ui-react/dist/commonjs/elements/Label' | ||
export default Label |
Oops, something went wrong.