@amandlaleaf/comments-widget
v1.0.0
Published
A reusable comments widget for Amandla Leaf platform
Downloads
12
Maintainers
Readme
@amandlaleaf/comments-widget
A reusable, customizable comments widget for the Amandla Leaf platform.
Installation
npm install @amandlaleaf/comments-widgetUsage
import { CommentsWidget } from '@amandlaleaf/comments-widget';
import '@amandlaleaf/comments-widget/styles.css';
function MyPage() {
return (
<CommentsWidget
pageId="unique-page-id"
apiUrl="https://your-api.run.app"
/>
);
}Props
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| pageId | string | Yes | Unique identifier for the page |
| apiUrl | string | Yes | Backend API URL |
| className | string | No | Additional CSS classes |
License
MIT
