Reference Source
import UserCard from 'flarum/components/UserCard.js'
public class | source

UserCard

Extends:

flarum/Component~Component → UserCard

The UserCard component displays a user's profile card. This is used both on the UserPage (in the hero) and in discussions, shown when hovering over a post author.

Props

  • user
  • className
  • editable
  • controlsButtonClassName

Method Summary

Public Methods
public

Build an item list of tidbits of info to show on this user's profile.

public

view(): *

Public Methods

public infoItems(): ItemList source

Build an item list of tidbits of info to show on this user's profile.

Return:

ItemList

public view(): * source

Return:

*