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

UserCard

Extends:

src/common/Component.js~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.

Attrs

  • user
  • className
  • editable
  • controlsButtonClassName

Method Summary

Public Methods
public

infoItems(): ItemList

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:

*