decode-vitrine
v1.0.6
Published
Decode's ad banner generator.
Readme
decode-vitrine
Decode's ad banner generator.
Install
npm install --save decode-vitrineOr
yarn add decode-vitrineProps
A list of props and methods available:
| Prop | Description | Default |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| token | Mandatory - The authentication token used to check the client using the library. | None|
| location |If the component is being used in a server side rendering environment such as Next.js or Gatsby the window.location object might not be available so this prop is used to determine the current page's location| null |
Usage
import React from 'react';
import Vitrine from 'decode-vitrine';
const Example = () => {
return <Vitrine token="YOUR_TOKEN_HERE" />;
}Made with ❤️ by Decode
