You can select different colors to display user's name for the different ranks a user has. I have a custom author display component and I want to be able to bring this functionality into it but have no idea how to find that information in a way that I can use. Help!
You can use community API v2 to find all the data related to ranks like color, icons, bold font, etc to build your own custom component
SELECT rank FROM users WHERE id = '8'
But I would recommend using a non-contract component in your custom component to fetch user details if it fits well in your requirement.
<@component id="common.widget.user-name" user="conv:5" /> or <@component id="common.widget.user-name" user="conv:username" />
Welcome to the Technology board!Curious about our platform? Looking to connect on social technology? You've come to the right place!