Skip to main content

LMFeedActionFooter

LMFeedActionFooter renders the action buttons and interactive elements in the footer section of feed posts and comments, including like, report, and moderation controls.

Props

PropertyTypeDescriptionOptional
propReportGroupReport | undefinedContains the report data for a group post or commentYes

CSS Classnames

ClassnameDescription
liked-commentIndicates a liked comment state
like lm-d-flex reported-comment-footer-barLike button container in reported comments
pipeDivider element between footer items
reported-comment-headingHeading text for reported comments
moderation-post-footer-wrapper moderation-post-footer-wrapper-custom-styleFooter container for moderation posts
lm-moderation-header__button lm-text-capitalize selected-button approve-button-custom-styleApprove button styling in moderation
lm-reported-comment-containerContainer for reported comment content
edit-permission-web-viewWeb view layout for permission editing
reported-comment-bodyMain content area of reported comments
likeLike button styling
lm-moderation-header__button lm-text-capitalizeBase styling for moderation buttons
reported-comment-wrapperWrapper for reported comment sections
reply-badgeBadge indicating reply status
lm-comment-avatarAvatar styling in comments
lm-moderation-header__button lm-text-capitalize reject-button-custom-styleReject button styling in moderation
moderation-footer-button-wrapperContainer for moderation action buttons
lm-d-flex lm-justify-content-space-between lm-align-items-center lm-mb-5 reported-comment-footer-barFooter bar layout for reported comments
lm-moderation-header__button lm-text-capitalize selected-buttonSelected state for moderation buttons
lm-moderation-header__button moderation-edit-member-permission-button edit-member-permission-custom-styleMember permission edit button styling
lm-reported-comment-detailsContainer for reported comment details
edit-permission-mobile-viewMobile view layout for permission editing
moderation-post-closed-byIndicates who closed the post
moderation-post-closed-footerFooter styling for closed posts
reported-comment-subheadingSubheading text in reported comments
lm-feed-post-like-container reported-comment-heart-iconLike icon container in reported comments
capitalizeText capitalization styling
moderation-post-footer-wrapper moderation-post-footer-wrapper-reported moderation-post-footer-wrapper-custom-styleFooter styling for reported posts in moderation

Example

To customise the component with their classnames, open your base CSS file and override the styles using the classname:

.liked-comment {
font-size: 18px;
color: "red";
}

Advanced Customisation

Customising Replies Likes Liked Icon

You can also pass your custom icon to replace the default icon for RepliesLikesLiked.

Below is an example for customising the icon for RepliesLikesLiked and rendering your own icon. It is fairly a 2 simple step process

  • Step 1: Create your own custom view.
import {
LMSocialFeed,
LMFeedNotificationHeader,
LMFeedUniversalFeed,
LMFeedCustomEvents,
initiateFeedClient,
} from "@likeminds.community/likeminds-feed-reactjs";

// Custom Icon for RepliesLikesLiked
const LMFeedCustomIconsCallback = {
repliesLikesLikedCustomIcon: () => {
return (
// Your Custom Code
);
};
}
  • Step 2: Pass your Custom View to LMSocialFeed
import {
LMSocialFeed,
LMFeedNotificationHeader,
LMFeedUniversalFeed,
LMFeedCustomEvents,
initiateFeedClient,
} from "@likeminds.community/likeminds-feed-reactjs"

const App = () => {
const lmFeedClient = initiateFeedClient()

return (
<div className="lm-wrapper">
<LMFeedNotificationHeader customEventClient={customEventClient} />
<LMSocialFeed
client={lmFeedClient}
customEventClient={customEventClient}
userDetails={userDetails}
LMFeedCustomIcons={LMFeedCustomIconsCallback}
>
<LMFeedUniversalFeed />
</LMSocialFeed>
</div>
)
}
export default App

Reference

For reference, check out this file