Back to Components
Social
Comment Box
Comment input with avatar, submit action, and live character count.
PropsUsage ExampleVariations
JL
0/280 characters
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/comment-box.tsx
Installation
Using shadcn CLI
npx shadcn add comment-box --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-mergeRelated Social Components
Activity Feed
List of activity items with avatar, action text, and timestamp.
Activity Feed Item
Timeline style activity entry with avatar, action text, timestamp, and optional attachment preview.
Activity Ticker
Live scrolling activity feed with looping updates and optional pause on hover.
Avatar Group
Stacked avatar group with overflow count.
Chat Bubble
Message bubble with avatar, timestamp, tail pointer for left/right alignment, and read receipt dots.
Comment Card
Compact comment card with avatar, name, timestamp, body text, like and reply actions.