1.0.10 • Published 1 year ago

gatsby-plugin-trustpilot-trustbox v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

gatsby-plugin-trustpilot-trustbox

Gatsby plugin to display your Trustpilot reviews on your website.

License Version Gatsby Version React Version

Changelog

More informations in CHANGELOG.md

Installation

Use this commmand npm i --save gatsby-plugin-trustpilot-trustbox or yarn install gatsby-plugin-trustpilot-trustbox

Usage

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-trustpilot-trustbox`,
      options: {
        templateID: process.env.TRUSTPILOT_TEMPLATE_ID, // the value of `data-template-id`
        businessunitID: process.env.TRUSTPILOT_BUSINESSUNIT_ID, // the value of `data-businessunit-id`
      },
    },
  ],
}

Add import to your file :

import { TrustPilotBox } from 'gatsby-plugin-trustpilot-trustbox'

Add component to your file :

<TrustPilotBox
  locale="fr-FR"
  defaultRevueURL={process.env.GATSBY_TRUSTPILOT_REVUE_URL}
/>
  • locale TrustBox locale, default 'en-EN'
  • styleHeight TrustBox styleHeight, default '24px'
  • styleWidth TrustBox styleWidth, default '100%'
  • theme TrustBox theme ('dark', 'light'), default 'light'
  • minReviewCount TrustBox minReviewCount (null, 10, 20, 50), default 'null'
  • defaultRevueURL TrustBox fallback link URL
  • defaultLabel TrustBox fallback link label
  • defaultClassName TrustBox fallback link className
1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago