Thread Functions
Social feed functionality in Solana App Kit
Thread Functions
The Thread system in Solana App Kit provides a complete social feed experience with posts, replies, reactions, and rich media content. This guide explains how to use the Thread components and related functions.
Core Components
Thread Component
The main Thread
component renders a complete social feed:
ThreadComposer Component
The ThreadComposer
component provides a UI for creating new posts:
Data Structure
The Thread system uses a specific data structure for posts:
Redux Integration
The Thread system integrates with Redux for state management. Here’s how to use the thread slice:
Utility Functions
The Thread system includes several utility functions:
Creating Custom Thread Sections
You can create custom thread sections by extending the ThreadSection
type:
On-Chain Integration
To integrate the Thread system with on-chain data, you can use the following pattern:
Customization
The Thread system is highly customizable through theme overrides:
For more detailed information on the Thread system, refer to the Thread Component Reference documentation.