@mercoa/react
TypeScript icon, indicating that this package has built-in type declarations

0.0.59-rc4 • Public • Published

Mercoa React Component Library

Setup

npm install --save @mercoa/react

yarn add @mercoa/react

Usage

The Mercoa React component library ships with a CSS stylesheet (based on tailwindcss) that needs to be imported.

The Mercoa React component library uses a React Context called MercoaSession. You can wrap your full app with this context, or only include it on specific routes and pages. All Mercoa components need to be inside a valid MercoaSession component.

Basic Usage

// First import the base tailwind.css file
// If you are already using tailwind in your project, you can skip this step
import '@mercoa/react/dist/tailwind.base.css'

// Import the Mercoa styles after the base tailwind.css file or your own tailwind CSS
import '@mercoa/react/dist/style.css'

import { MercoaSession } from '@mercoa/react'

export default function Index() {
  const token = 'YOUR_ENTITY_TOKEN' // See https://docs.mercoa.com/api-reference/entity/user/generate-jwt-token
  return <MercoaSession token={token} /> // The Mercoa Session Context without any children will render the full entity portal
}

Components

Components are documented at react.mercoa.com!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.59-rc469latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.59-rc469
0.0.59-rc384
0.0.59-rc250
0.0.59-rc15
0.0.586
0.0.58-rc61
0.0.58-r651
0.0.58-rc51
0.0.58-rc40
0.0.58-rc30
0.0.58-rc20
0.0.58-rc10
0.0.57274
0.0.56-rc40
0.0.56-rc30
0.0.56-rc20
0.0.56-rc10
0.0.550
0.0.54-rc110
0.0.54-rc100
0.0.54-rc90
0.0.54-rc80
0.0.54-rc70
0.0.54-rc60
0.0.54-rc50
0.0.54-rc40
0.0.54-rc30
0.0.54-rc20
0.0.54-rc10
0.0.530
0.0.53-rc40
0.0.53-rc30
0.0.53-rc20
0.0.53-rc10
0.0.520
0.0.51585
0.0.500
0.0.50-rc30
0.0.50-rc20
0.0.50-rc10
0.0.490
0.0.49-rc40
0.0.49-rc30
0.0.49-rc20
0.0.49-rc10
0.0.480
0.0.48-rc30
0.0.48-rc20
0.0.48-rc10
0.0.470
0.0.47-rc10
0.0.460
0.0.46-rc40
0.0.46-rc30
0.0.46-rc20
0.0.46-rc10
0.0.450
0.0.45-rc10
0.0.440
0.0.44-rc10
0.0.430
0.0.43-rc20
0.0.43-rc10
0.0.420
0.0.410
0.0.400
0.0.39-rc50
0.0.39-rc40
0.0.39-rc30
0.0.39-rc20
0.0.380
0.0.38-rc20
0.0.38-rc10
0.0.370
0.0.37-rc40
0.0.37-rc30
0.0.37-rc20
0.0.37-rc10
0.0.360
0.0.350
0.0.340
0.0.34-rc30
0.0.34-rc20
0.0.34-rc10
0.0.330
0.0.33-rc20
0.0.33-rc10
0.0.33-rc00
0.0.320
0.0.310
0.0.300
0.0.290
0.0.280
0.0.270
0.0.260
0.0.250
0.0.240
0.0.230
0.0.220
0.0.210
0.0.201
0.0.190
0.0.180
0.0.170
0.0.160
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.11-rc10
0.0.100
0.0.10-rc80
0.0.10-rc70
0.0.10-rc60
0.0.10-rc50
0.0.10-rc40
0.0.10-rc30
0.0.10-rc20
0.0.10-rc10
0.0.90
0.0.9-rc10
0.0.80
0.0.8-rc42
0.0.8-rc30
0.0.8-rc20
0.0.8-rc10
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.2-rc40
0.0.2-rc30
0.0.2-rc20
0.0.2-rc10
0.0.10

Package Sidebar

Install

npm i @mercoa/react

Weekly Downloads

1,079

Version

0.0.59-rc4

License

MIT

Unpacked Size

22.9 MB

Total Files

50

Last publish

Collaborators

  • sandeep_mercoa