This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
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
Codecov Report
@@ Coverage Diff @@
## master #75 +/- ##
==========================================
+ Coverage 68.96% 69.72% +0.76%
==========================================
Files 67 70 +3
Lines 1073 1133 +60
Branches 204 215 +11
==========================================
+ Hits 740 790 +50
- Misses 329 338 +9
- Partials 4 5 +1
Continue to review full report at Codecov.
|
levithomason
changed the title
feat(Avatar): add new component
feat: add Avatar component
Jul 12, 2018
AvailabilityLooking around the web at existing support around user avatars I see a colored dot, an icon, an enum for choosing the status, and possibly a custom status message. I would expect future versions of this component to support these use cases. In prep for that, I propose we rename Sources:
|
…t all possible values
-improved style for the component
kuzhelov
previously approved these changes
Jul 17, 2018
kuzhelov
previously approved these changes
Jul 17, 2018
kuzhelov
approved these changes
Jul 17, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Avatar
The avatar component is component used for showing user on the web, alongside with a presence icon. It can show an image of the user, or initials form his/hers name if the image is not provided. The will be composed of:
<Image avatar >
or<Label circular >
if the image is not provided and a presence icon<Icon circular size='mini' inverted />
TODO
API Proposal
src: string
The src prop will be use for showing the image in the avatar.
name: string
The name prop will be use for showing the initials of the person, if there is not src provided. The name will also appear as a default tooltipfor the avatar.
noTooltip: boolean
This property will be used to alter if the tooltip should be shown/hidden.
availability: oneOf(['Available', 'Away', 'BeRightBack', 'Busy', 'DoNotDisturb', 'Offline', 'PresenceUnknown'])
The availability prop will be use for showing different presence icons.
size: number [0..10]
color: oneOf(SUI.colors)
The background color for the avatar if the src is not provided.