Skip to main content

Social Comments

Instagram-style social comment system with hearts/likes, single-level nesting, and clean minimal design.

Key Features

Simple Nesting

Maximum 2 levels: comments and replies. Clean, easy-to-follow conversations.

Heart/Like System

Positive-only engagement. No downvotes — just likes.

Sorting Options

Top/New/Old sorting built-in. Users can switch on the fly.

Minimal Design

Clean, uncluttered interface perfect for mobile and visual content.

@ Mentions

Tag other users with autocomplete suggestions.

Real-Time Updates

Automatic updates when new comments arrive.

Use Cases

Perfect for:
  • Social media platforms
  • Photo/video sharing apps
  • Content creator platforms
  • Mobile-first experiences
  • Quick social interactions
  • Brand engagement
Not ideal for:
  • Deep technical discussions (use Threaded Comments instead)
  • Platforms that need voting/scoring
  • Content requiring complex threading

Platform Support


Styling Variants

Uses Tailwind utility classes. Requires Tailwind CSS (or NativeWind for React Native) installed.Best for projects using Tailwind or design system integration.
Choose your preference during npx @sublay/cli init.

Required Dependencies

React (Web):
React Native / Expo:
The Tailwind variant on React also needs clsx ^2.1.1 and tailwind-merge ^3.0.0 (for cn, in shared/cn.ts, which joins class names). On Expo, @sublay/expo takes the place of @sublay/react-native. The Tailwind variant on React Native and Expo also needs nativewind ^4.0.0. The Giphy packages and react-native-svg are used by the files in the component’s shared/ folder (the GIF picker, the icons and the generated avatar for users without one). add checks your package.json for all of these and offers to install the ones that are missing.

Next Steps

Installation

Add social comments to your project

Props & API

Learn about available props

File Structure

Understand file organization

Features

Explore all features