X Enterprises
Wall

WallReplies

Expandable threaded reply section with animated transition, pagination, and reply input slot.

Wall

The Wall category provides a complete social feed system. XAWallFeed is the top-level orchestrator; it renders pinned and regular post lists, delegates search/filter to a toolbar, and shows appropriate empty or loading states. Individual posts are rendered by XAWallPost. The remaining components — XAWallInput, XAWallReplies, XAWallReactions, and XAWallTags — can be composed independently or are automatically used inside XAWallFeed and XAWallPost.

Components

<XAWallReplies />

An animated, expandable reply thread. Renders up to maxVisible replies using XAWallPost at size="sm", shows a "Show N more" button when there are additional replies, and emits load-more for server-side pagination. Accepts a #input slot for the reply composer and a #reply-actions scoped slot for per-reply controls.

<XAWallReplies
  :replies="post.replies"
  :expanded="isExpanded"
  :total-count="post.replyCount"
  :max-visible="3"
  @update:expanded="isExpanded = $event"
  @load-more="loadMoreReplies"
  @react="handleReplyReaction"
>
  <template #input>
    <XAWallInput v-model="replyBody" submit-text="Reply" @submit="submitReply" />
  </template>
</XAWallReplies>

Props

PropTypeDefaultDescription
repliesArray[]Array of reply post objects.
expandedBooleanfalseControls visibility via v-model.
maxVisibleNumber3Number of replies shown before a "show more" button appears.
loadingBooleanfalseShows a spinner inside the section.
totalCountNumbernullTotal reply count for computing "show N more" (falls back to replies.length).

Events

EventDescription
update:expandedCollapse/expand state changed.
load-moreUser clicked "Show N more replies".
reactReaction toggled on a reply.
tag-clickTag clicked on a reply.
attachment-clickAttachment clicked on a reply.

AI Context

component: XAWallReplies
package: "@xenterprises/nuxt-x-app"
auto-import: true
prefix: XA
category: Wall
use-when: Adding a threaded, expandable reply section beneath a XAWallPost. Use the #input slot for XAWallInput as the reply composer. Supports server-side pagination via load-more event.
Copyright © 2026