New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mercoa/react

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mercoa/react

Mercoa React Component Library

  • 0.0.8-rc3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
increased by33.13%
Maintainers
1
Weekly downloads
 
Created
Source

Mercoa React Component Library

Setup

npm install --save @mercoa/react

yarn add @mercoa/react

Dependencies

The Mercoa React Library requires tailwindcss to function.

In addition, the following tailwind plugins need to be installed:

In your tailwind.config.ts or tailwind.config.js file, you will also need to add the following to colors:

const config: Config = {
  // ...
  content: [
    // ...
    './node_modules/@mercoa/react/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    // ...
    colors: {
      // ...
      'mercoa-primary': 'var(--mercoa-primary)',
      'mercoa-primary-light': 'var(--mercoa-primary-light)',
      'mercoa-primary-dark': 'var(--mercoa-primary-dark)',
      'mercoa-primary-text': 'var(--mercoa-primary-text)',
      'mercoa-primary-text-invert': 'var(--mercoa-primary-text-invert)',
    },
  },
  plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
}

Usage


import { MercoaSession } from '@mercoa/react'

export default function Index(){

  const token = 'YOUR_ENTITY_TOKEN' // See https://docs.mercoa.com/api-reference/api-reference/entity/user/generate-jwt-token

  return <>
     {/* The Mercoa Session Context without any children will render the full entity portal */}
     <MercoaSession
     token={token}
     googleMapsApiKey={''}
     >
  </>

}

Examples

Next.js

FAQs

Package last updated on 30 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc