A simple and customizable React component for displaying testimonials in your application.
- Responsive and mobile-friendly
- Customizable styles using props
- Supports multiple testimonials with carousel/slider functionality
- Lightweight and easy to integrate
You can install the library using npm or yarn:
npm install tasty-monialor
yarn add tasty-monialImport the Testimonial component and use it in your React project:
import React from 'react';
import Testimonial from 'tasty-monial';
const App = () => {
return (
<div>
<h1>User Testimonials</h1>
<Testimonial />
</div>
);
};
export default App;| Prop | Type | Description | Default |
|---|---|---|---|
| testimonials | Array | List of testimonial objects (name, feedback, designation, image) | [] |
| autoPlay | Boolean | Enable automatic sliding of testimonials | false |
| interval | Number | Time interval for auto-slide (in ms) | 5000 |
| showArrows | Boolean | Show navigation arrows | true |
| showDots | Boolean | Show indicator dots | true |
You can customize the component's styles using CSS or styled-components. Additionally, pass a className prop for further styling.
Contributions are welcome! Feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License.
For any queries, reach out via GitHub Issues.