Skip to main content

LMFeedCreateEditPostMediaRenderer

LMFeedCreateEditPostMediaRenderer handles the rendering of media content in post creation and editing interfaces. It manages the display and preview of images, videos, and other media attachments.

Props

PropertyTypeDescriptionOptional
fileFileThe media file to be rendered in the post✔️
attachmentAttachmentThe attachment object containing media details✔️
ogTagsOgTagOpen Graph tags for link previews✔️
showVideoPosterbooleanControls visibility of video poster image✔️
posterImageFileFileThumbnail image file for video content✔️

CSS Classnames

ClassnameDescription
poll-preview-subheading-styleSubheading text styling in poll preview
attachmentPdf__content--titleTitle styling for PDF attachments
postImgSlider__headerHeader section of image slider
poll-preview-title-parentContainer for poll title
poll-preview-advance-options poll-preview-subheading-styleAdvanced options styling in poll preview
postImgSlider__header--cancelBtnCancel button in image slider header
postImgSlider__header--addMoreAdd more button in image slider header
attachmentOGTag__content--iconIcon styling for OG tag attachments
attachmentPdf__content--urlURL display styling for PDF attachments
poll-preview-titleTitle text styling in poll preview
poll-option-text-input poll-option-text-input-previewText input styling for poll options
attachmentPdfContainer for PDF attachment display
poll-preview-wrapperMain wrapper for poll preview section
lm-feed-create-post-media-itemMedia item container in post creation
poll-option-wrapperContainer for poll option elements
postImgSliderMain container for post image slider
attachmentPdf__contentContent container for PDF attachments

Example

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

.poll-preview-subheading-style {
font-size: 18px;
color: "red";
}

Reference

For reference, check out this file