AJS method to create user profile link similar to $userformat.formatUserkey

I am looking for a way to render user full name, profile hover, avatar and link to profile similar to what I am able to do server side using velocity template and $userformat.formatUserkey.

It there some HTML template and then CSS classes to add? Or an AJS method to create the HTML?

Best regards

I found https://community.atlassian.com/t5/Answers-Developer-Questions/Formatting-user-profile-links/qaq-p/510687 with JIRA.userhover(context);

Is this still valid?