forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Comment): add size prop to Group (Semantic-Org#1327)
* fix(Comment.Group): added size prop * fix(Comment.Group): appending size prop value to className, added tests * fix(Comment.Group): refactor to use SUI sizes * fix(Comment.Group): fix typings * Update index.d.ts * Update CommentGroup-test.js * Update CommentGroup.js * Update index.d.ts * docs(Comment.Group): added comment group size examples to doc site
- Loading branch information
1 parent
3b19184
commit 6079eb9
Showing
5 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
129 changes: 129 additions & 0 deletions
129
docs/app/Examples/views/Comment/Variations/CommentExampleGroupSize.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,129 @@ | ||
import React from 'react' | ||
import { Comment, Header } from 'semantic-ui-react' | ||
|
||
const CommentExampleGroupSize = () => ( | ||
<div> | ||
<Comment.Group size='mini'> | ||
<Header as='h3' dividing>Mini Comments</Header> | ||
|
||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Matt</Comment.Author> | ||
<Comment.Metadata> | ||
<span>Today at 5:42PM</span> | ||
</Comment.Metadata> | ||
<Comment.Text>How artistic!</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/joe.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Joe Henderson</Comment.Author> | ||
<Comment.Metadata> | ||
<span>5 days ago</span> | ||
</Comment.Metadata> | ||
<Comment.Text>Dude, this is awesome. Thanks so much</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
</Comment.Group> | ||
<Comment.Group size='small'> | ||
<Header as='h3' dividing>Small Comments</Header> | ||
|
||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Matt</Comment.Author> | ||
<Comment.Metadata> | ||
<span>Today at 5:42PM</span> | ||
</Comment.Metadata> | ||
<Comment.Text>How artistic!</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/joe.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Joe Henderson</Comment.Author> | ||
<Comment.Metadata> | ||
<span>5 days ago</span> | ||
</Comment.Metadata> | ||
<Comment.Text>Dude, this is awesome. Thanks so much</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
</Comment.Group> | ||
<Comment.Group size='large'> | ||
<Header as='h3' dividing>Large Comments</Header> | ||
|
||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Matt</Comment.Author> | ||
<Comment.Metadata> | ||
<span>Today at 5:42PM</span> | ||
</Comment.Metadata> | ||
<Comment.Text>How artistic!</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/joe.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Joe Henderson</Comment.Author> | ||
<Comment.Metadata> | ||
<span>5 days ago</span> | ||
</Comment.Metadata> | ||
<Comment.Text>Dude, this is awesome. Thanks so much</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
</Comment.Group> | ||
<Comment.Group size='massive'> | ||
<Header as='h3' dividing>Massive Comments</Header> | ||
|
||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Matt</Comment.Author> | ||
<Comment.Metadata> | ||
<span>Today at 5:42PM</span> | ||
</Comment.Metadata> | ||
<Comment.Text>How artistic!</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
<Comment> | ||
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/joe.jpg' /> | ||
<Comment.Content> | ||
<Comment.Author as='a'>Joe Henderson</Comment.Author> | ||
<Comment.Metadata> | ||
<span>5 days ago</span> | ||
</Comment.Metadata> | ||
<Comment.Text>Dude, this is awesome. Thanks so much</Comment.Text> | ||
<Comment.Actions> | ||
<a>Reply</a> | ||
</Comment.Actions> | ||
</Comment.Content> | ||
</Comment> | ||
</Comment.Group> | ||
</div> | ||
) | ||
|
||
export default CommentExampleGroupSize |
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