Beautiful, embeddable React widget for displaying testimonials from testimon
npm install testimon-widgetBeautiful, embeddable React widget for displaying testimonials from testimon.
``bash`
npm install testimon-widgetor
yarn add testimon-widgetor
pnpm add testimon-widget
`tsx
import { TestimonialWidget } from 'testimon-widget';
function App() {
return (
theme="dark"
layout="grid"
/>
);
}
`
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| apiKey | string | required | Your testimon API key from dashboard |apiUrl
| | string | https://www.testimon.in | API base URL (change for self-hosted) |theme
| | 'light' \| 'dark' | 'light' | Widget color theme |layout
| | 'grid' \| 'carousel' \| 'list' | 'grid' | Layout style |maxItems
| | number | 6 | Maximum testimonials to display |showAll
| | boolean | false | Show unapproved testimonials (requires API key) |className
| | string | '' | Additional CSS classes |
`tsx`
layout="grid"
maxItems={6}
/>
`tsx`
layout="carousel"
maxItems={3}
/>
`tsx`
layout="list"
maxItems={5}
/>
`tsx`
`tsx`
1. Sign up at www.testimon.in
2. Create a project
3. Copy your API key from the project dashboard
4. Use it in the widget
`tsx
'use client';
import { TestimonialWidget } from 'testimon-widget';
export default function TestimonialsSection() {
return (
What Our Customers Say
theme="dark"
layout="grid"
maxItems={6}
/>
);
}
`
`tsx
import { TestimonialWidget } from 'testimon-widget';
function Testimonials() {
return (
$3
`tsx
apiKey="your-api-key"
className="my-custom-class"
theme="dark"
/>
``- ✨ Beautiful, modern design
- 🎨 Light and dark themes
- 📱 Fully responsive
- ⚡ Zero dependencies (except React)
- 🎯 TypeScript support
- 🔄 Auto-rotating carousel
- 🎭 Smooth animations
- 🎨 Customizable styling
- 🚀 Lightweight (~5KB gzipped)
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
MIT
- 📧 Email: support@testimon.in
- 🐛 Issues: GitHub Issues
- 📖 Docs: www.testimon.in/docs