solana-app-kit


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

Function: default()

default(__namedParameters): Element

Defined in: src/components/thread/Thread.tsx:57

Thread component that displays a list of posts with nested replies

Parameters

__namedParameters

ThreadProps

Returns

Element

Component

Description

The Thread component is a core component that renders a list of posts in a threaded discussion format. It supports nested replies, post composition, and customizable styling through themes and style overrides.

Example

<Thread
  rootPosts={posts}
  currentUser={user}
  showHeader={true}
  onPostCreated={() => refetchPosts()}
  onPressPost={(post) => handlePostPress(post)}
/>