DocsComponentsFollowers and Following

Followers and Following

The Followers and Following component displays a comprehensive interface for viewing a user’s followers and following lists with features like:

  • Tabbed interface (Followers/Following)
  • Search functionality
  • Tag management and filtering
  • Follower state indicators (follows you, blocks you, mutes you)
  • Virtual scrolling for performance
  • Mobile-responsive design
  • Empty state handling
  • Recommendations for new users

Add to your project

import { FollowersAndFollowing } from 'ethereum-identity-kit'
 
export default function Profile() {
  return <FollowersAndFollowing user="vitalik.eth" defaultTab="followers" connectedAddress="0x..." />
}
Try it out! - https://playground.ethidentitykit.com/?path=/story/organisms-followers-and-following-table--followers-and-following-by-address

Parameters

ParameterDescriptionRequiredDefault Value
userEthereum Address or ENS name to display followers and following for.Yes-
defaultTabThe default tab to display (‘followers’ or ‘following’).Yes-
canEditTagsWhether the user can edit tags for profiles in the following list.Nofalse
showTagsByDefaultWhether to show tags by default when viewing the following list.Nofalse
includeBlockedWhether to include blocked users from the lists.Nofalse
showRecommendationsWhether to show recommendations on the following tab for connected users with no following.Nofalse
isConnectedUserProfileWhether the profile being viewed belongs to the connected user.Nofalse
darkModeEnables dark mode styling for the component.Nofalse
connectedAddressAddress of the user connected to the app.No-
selectedListList number selected in your application for the connected user.No-
onProfileClickFunction called when a profile in the list is clicked.No-
showHeaderImageWhether to show header images in the profile list.Nofalse
rowHeightHeight of each row in the profile list (in pixels).No80
preventDefaultScrollWhether to prevent default scroll behavior.Nofalse
useVirtualListWhether to use virtual scrolling for better performance with large lists.Nofalse

Features

Tabbed Interface

The component provides a clean tabbed interface to switch between viewing followers and following lists.

Search and Filtering

  • Search: Find specific profiles by name or address
  • Tag Filtering: Filter following list by custom tags (when canEditTags is enabled)
  • Sort Options: Multiple sorting options for organizing the lists

Tag Management

When canEditTags is true and viewing your own following list, you can:

  • Add custom tags to profiles you follow
  • Filter by specific tags
  • Toggle tag visibility

Virtual Scrolling

Enable useVirtualList for improved performance when displaying large lists of followers or following.

Empty States

The component handles empty states gracefully with helpful messages and call-to-action text for connected users.

Recommendations

When showRecommendations is enabled, users with no following will see personalized recommendations to help them get started.

The component automatically adapts to mobile layouts and provides optimized touch interactions. The header positioning adjusts based on the isTopEight prop for integration with different layout contexts.

⚠️

When using useVirtualList, ensure your container has a defined height for optimal performance. The virtual list requires explicit dimensions to calculate visible items correctly.

The component uses predefined styles and can be further customized using CSS classes. The appearance automatically toggles between light and dark modes using the darkMode prop, however, if you have a dark class applied in your application, the component will automatically detect and use that.