Comenzar
reworth-directory es un componente de React listo para usar que le permite integrar el directorio de REWORTH
Instalar
# using yarn
yarn add @reworthrewards/directory-react-component
# using npm
npm install --save @reworthrewards/directory-react-component
Uso
import React from 'react';
import { ReworthDirectory } from '@reworthrewards/directory-react-component';
const Directory = () => {
return (
<ReworthDirectory
accentColor={'#2E58FF'}
lang={'ES'}
fontFamily={'Poppins'}
/>
)
}
React con Typescript
import React from 'react';
const Reworth = require('@reworthrewards/directory-react-component');
const { ReworthDirectory } = Reworth;
const Directory = () => {
return (
<ReworthDirectory
accentColor={'#2E58FF'}
lang={'ES'}
fontFamily={'Poppins'}
/>
)
}
Props permitidas
Nombre | Tipo | Default | Opciones | Descripción |
---|---|---|---|---|
accentColor | String | "#2E58FF" | cualquier color | Color de acento para todos los elementos y encabezado |
lang | String | "ES" | "ES", "EN" | Idioma admitido por el componente |
fontFamily | String | "Poppins" | "Poppins", "Montserrat", "Nunito" | Tipografías de fuentes disponibles |
geo | String | undefined | "19.3918512,-99.162209" | Latitude y Longitud |
gtm | Boolean | false | true - false | Activar Google Tag Manager |
License
mit © ReworthRewards