https://github.com/pittica/gatsby-plugin-trustpilot-widget
Trustpilot widget for GatsbyJS.
https://github.com/pittica/gatsby-plugin-trustpilot-widget
gatsby gatsby-plugin gatsbyjs pittica trustpilot trustpilot-widget
Last synced: 3 months ago
JSON representation
Trustpilot widget for GatsbyJS.
- Host: GitHub
- URL: https://github.com/pittica/gatsby-plugin-trustpilot-widget
- Owner: pittica
- License: mit
- Created: 2020-05-15T00:00:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T04:01:36.000Z (over 2 years ago)
- Last Synced: 2025-03-18T16:32:20.789Z (4 months ago)
- Topics: gatsby, gatsby-plugin, gatsbyjs, pittica, trustpilot, trustpilot-widget
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@pittica/gatsby-plugin-trustpilot-widget
- Size: 6.77 MB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# pittica/gatsby-plugin-trustpilot-widget




## Description
[Trustpilot](https://www.trustpilot.com/) widget for [GatsbyJS](https://www.gatsbyjs.org/).
## Install
[](https://www.npmjs.com/package/@pittica/gatsby-plugin-trustpilot-widget)
[](https://www.npmjs.com/package/@pittica/gatsby-plugin-trustpilot-widget)```shell
npm install @pittica/gatsby-plugin-trustpilot-widget
```## Component Usage
The _username_, _template_ and _business_ fields **are required**.
You can get the data from the TrustBox in your businness panel on [Trustpilot](https://www.trustpilot.com/)
```HTML
```
Import the component **TrustpilotReviews** in your component.
```javascript
import TrustpilotReviews from "@pittica/gatsby-plugin-trustpilot-widget"
```Use it in your code as component.
```javascript
class MyComponent extends React.Component {
render() {
return (
)
}
}
```### Attributes
The component has optional attributes which the user can use to set the aspect of the TrustBox.
#### language
Sets the language of the locale and the language of the API.
##### Default Value
`en`
##### Note
If you set the language attribute you have to set the _culture_ attribute too.
#### culture
Sets the culture of the locale.
##### Default Value
`US`
##### Note
If you set the culture attribute you have to set the _language_ attribute too.
#### theme
Sets the UI theme of the TrustBox.
##### Values
- `light`
- `dark`##### Default value
`light`
#### width
Sets the width of the widget.
##### Default Value
`100%`
#### height
Sets the height of the widget.
##### Default Value
`52px`
#### template
Indicates the template ID.
#### business
Indicates the business ID.
#### username
Indicates the username.
## Copyright
(c) 2020-2022, [Pittica S.r.l.](https://pittica.com).