Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@rmwc/avatar
Advanced tools
RMWC ADDON
Avatars are virtual representations of users in a system.
<>
<Avatar
src="images/avatars/blackwidow.png"
size="xsmall"
name="Natalia Alianovna Romanova"
/>
<Avatar src="images/avatars/hulk.png" size="small" name="Bruce Banner" />
<Avatar src="images/avatars/thor.png" size="medium" name="Thor Odinson" />
<Avatar
src="images/avatars/captainamerica.png"
size="large"
name="Steve Rogers"
/>
<Avatar src="images/avatars/ironman.png" size="xlarge" name="Tony Stark" />
</>
<>
<Avatar name="Natalia Alianovna Romanova" size="xsmall" />
<Avatar name="Bruce Banner" size="small" />
<Avatar name="Thor Odinson" size="medium" />
<Avatar name="Steve Rogers" size="large" />
<Avatar name="Tony Stark" size="xlarge" />
</>
<Avatar
src="images/avatars/blackwidow.png"
size="large"
name="Natalia Alianovna Romanova"
square
/>
<Avatar
src="images/avatars/google.svg"
size="large"
contain
name="Google"
square
/>
This is for Avatars that are displayed in a corellated grouping or list.
<AvatarGroup>
<Avatar
src="images/avatars/captainamerica.png"
name="Steve Rogers"
size="large"
interactive
/>
<Avatar
src="images/avatars/ironman.png"
name="Tony Stark"
size="large"
interactive
/>
<AvatarCount size="large" value={12} interactive />
</AvatarGroup>
<AvatarGroup dense>
<Avatar
src="images/avatars/captainamerica.png"
name="Steve Rogers"
size="large"
interactive
/>
<Avatar
src="images/avatars/ironman.png"
name="Tony Stark"
size="large"
interactive
/>
<AvatarCount size="large" overflow value={4} interactive />
</AvatarGroup>
The avatar component has been designed to work nicely in any of the places you would use an icon.
<Button
label="Enlist now!"
icon={<Avatar src="images/avatars/captainamerica.png" name="Steve Rogers" />}
/>
<Chip
label="Hulk Smash"
icon={<Avatar src="images/avatars/hulk.png" name="Bruce Banner" />}
/>
<TextField
label="Message Natalia..."
outlined
icon={
<Avatar
src="images/avatars/blackwidow.png"
name="Natalia Alianovna Romanova"
square
/>
}
/>
An Avatar component for displaying users in a system.
Name | Type | Description |
---|---|---|
contain | boolean | Contain the avatar image instead of covering. |
interactive | boolean | Make the avatar interactive. |
name | string | The name of the user. This will get converted to initials and set the hover title. |
ripple | RipplePropT | Adds a ripple effect to the component |
size | IconSizeT | The size of the avatar |
square | boolean | Make the avatar square. |
src | string | The url for the image. This gets passed to the Icon component. |
A container for groups of Avatars
Name | Type | Description |
---|---|---|
dense | boolean | Makes the list dense |
An Avatar count for displaying list overflow.
Name | Type | Description |
---|---|---|
interactive | boolean | Make the avatar interactive. |
overflow | boolean | Optionally renders a "+" to indicate overlow. |
size | IconSizeT | The size of the avatar |
square | boolean | Make the avatar square. |
value | number | The number of users. |
14.2.8 (2024-07-01)
This was a version bump only, there were no code changes.
This file was generated using @jscutlery/semver.
FAQs
RMWC avatar component
The npm package @rmwc/avatar receives a total of 631 weekly downloads. As such, @rmwc/avatar popularity was classified as not popular.
We found that @rmwc/avatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.