User with Rating
Display user avatars with roles and rating
Use the User
component to display users with optional roles and ratings to help visitors visualize feedback about your users. The User
component combines the Avatar
and Rating
components:
Marcus Top rated seller
The User
component can have optional roles and ratings. The rating can be specified using the rating
prop, and can be configured using the props of the Rating
component.
Rating Configurations
George Astro dev
Emily React dev
You can use the {0}
and {1}
placeholders for the current and total scores to create custom score texts, or to translate your components. To remove ratings, simply omit the rating
prop. To learn more about how to customize ratings, consult the documentation of the Rating
component.
API
Prop | Purpose |
---|---|
avatar | Sets the avatar for the user. |
avatarSize | Sets the size of the avatar. |
name | Sets the name of the user. |
role | Sets a role for the user, displayed under their name. |
roleTooltip | Sets a tooltip for the role. |
rating | Sets the rating of the user. |
For the available props on the
Rating
component, visit its API documentation. Request improvement for this page