solana-app-kit


solana-app-kit / components/thread/ThreadItem / default

Function: default()

default(__namedParameters): Element

Defined in: src/components/thread/ThreadItem.tsx:64

A component that renders an individual post within a thread

Parameters

__namedParameters

ThreadItemProps

Returns

Element

Component

Description

ThreadItem displays a single post with its replies in a threaded discussion. It handles post interactions like replying, deleting, and showing nested responses. The component supports customizable styling and themes.

Features:

  • Displays post content with author information
  • Shows nested replies
  • Handles post deletion
  • Supports reply composition
  • Customizable appearance through themes

Example

<ThreadItem
  post={postData}
  currentUser={user}
  rootPosts={allPosts}
  depth={0}
  onPressPost={handlePostPress}
/>