-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
121 additions
and
28 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
docs/app/Examples/elements/List/Types/ListExampleIconShorthand.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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import React from 'react' | ||
import { List } from 'semantic-ui-react' | ||
|
||
const items = [ | ||
{ icon: 'users', content: 'Semantic UI' }, | ||
{ icon: 'marker', content: 'New York, NY' }, | ||
{ icon: 'mail', content: <a href='mailto:jack@semantic-ui.com'>jack@semantic-ui.com</a> }, | ||
{ icon: 'linkify', content: <a href='http://www.semantic-ui.com'>semantic-ui.com</a> }, | ||
] | ||
|
||
const ListExampleIconShorthand = () => ( | ||
<List items={items} /> | ||
<List> | ||
<List.Item icon='users' content='Semantic UI' /> | ||
<List.Item icon='marker' content='New York, NY' /> | ||
<List.Item icon='mail' content={<a href='mailto:jack@semantic-ui.com'>jack@semantic-ui.com</a>} /> | ||
<List.Item icon='linkify' content={<a href='http://www.semantic-ui.com'>semantic-ui.com</a>} /> | ||
</List> | ||
) | ||
|
||
export default ListExampleIconShorthand |
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
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
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
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
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