@testimonial-hub/testimonials-widget
v1.1.1
Published
Testimonial-Hub.com premium tier testimonials widget
Downloads
2
Readme
Testimonial-Hub.com
Testimonials List component for use with the Testimonial-Hub premium tier API subscription.
This webcomponent follows the open-wc recommendation.
Installation
npm i @testimonial-hub/testimonials-widget
Module Usage
<script type="module">
import '@testimonial-hub/testimonials-widget';
</script>
<testimonials-list></testimonials-list>
To easily consume this component in React, refer to the Lit React documentation
For example, in Next.js:
'use client'
import { createComponent } from '@lit/react';
import { TestimonialsList } from '@testimonial-hub/testimonials-widget'
import React from 'react';
export const TestimonialsListComponent = createComponent({
tagName: 'testimonials-list',
elementClass: TestimonialsList,
react: React
});
Then use the <TestimonialsListComponent>
, passing your server props.
Documentation
To read more about how to use this widget, or to read how to use from the CDN visit:
https://docs.testimonial-hub.com/javascript-widget.html