@nice2dev/social
v1.0.3
Published
Nice2Dev Social — Comments, ratings, activity feed, tag cloud, social panel, user list, wiki for React
Maintainers
Readme
@nice2dev/social
Social & community components for React applications — comments, ratings, activity feeds, tag clouds, user lists, and a wiki module.
Installation
npm install @nice2dev/socialPeer dependencies: react >= 17.0.0, react-dom >= 17.0.0
Components
| Component | Description |
|---|---|
| NiceComments | Threaded comments with replies, reactions, and moderation |
| NiceRatings | Star/emoji/score ratings with aggregation display |
| NiceSocialPanel | Likes, shares, and bookmarks action panel |
| NiceTagCloud | Weighted tag cloud with click handling |
| NiceUserList | User list with avatars, online status, and filtering |
| NiceWiki | Wiki module with page tree sidebar and content viewer/editor |
| NiceActivityFeed | Chronological activity feed with grouping |
Usage
import { NiceComments, NiceRatings, NiceActivityFeed } from '@nice2dev/social';
function CommunityPage({ entityId }) {
return (
<>
<NiceRatings entityId={entityId} mode="stars" />
<NiceComments threadId={entityId} allowReplies />
<NiceActivityFeed entityId={entityId} />
</>
);
}Types
Key TypeScript types exported: CommentEntry, RatingMode, RatingAggregation, SocialStats, TagEntry, UserEntry, WikiPage, ActivityEvent.
License
MIT © NiceToDev
