Documentation Index
Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
Use this file to discover all available pages before exploring further.
Social Comments File Structure
Approximately 23 files organized for simplicity and clarity.Directory Tree
Key Files
social-comment-section.tsx — Main Component
The entry component. Edit this to modify the overall layout, add headers or footers, or change how the component is structured.
new-comment-form.tsx — Comment Input
Handles both top-level comment input and reply input (reused for both). Edit to:
- Customize placeholder text
- Change submit button styles
- Add character limits
heart-button.tsx — Like Button
The heart icon and like count. Edit to:
- Change the heart icon color or style
- Modify the like count display
- Add animations on like
sort-by-button.tsx — Sort Control
The Top/New/Old sort switcher. Edit to:
- Rename sort options
- Remove sort options you don’t need
- Change button styles
use-social-comments.tsx — Main Hook
Contains all comment logic and the key behavioral callbacks you’ll want to customize:
loginRequiredCallback— Called when an unauthenticated user tries to commentusernameRequiredCallback— Called when a user without a username tries to commentcurrentUserClickCallback— Called when a user clicks their own profileotherUserClickCallback(userId, foreignId)— Called when a user clicks another user’s profile
Key Differences from Threaded Comments
| Threaded | Social |
|---|---|
vote-buttons.tsx | heart-button.tsx |
| Threading lines + indentation | Flat design |
| Unlimited nesting | Max 2 levels |
| No sort button | sort-by-button.tsx |
| Complex thread collapse | Simple reply expansion |
Common Customizations
Change Heart Color
Modify Sort Options
Customize Empty State
Next Steps
Features
Feature overview
Customization
Customize colors, layout, and functionality
Props & API
Props reference
Installation
Installation guide

