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

1.1.9 • Public • Published

@csvbox/react

React adapter for csvbox.io

NPM JavaScript Style Guide

Shell

npm install @csvbox/react

Import

import { CSVBoxButton } from '@csvbox/react'

Usage

<CSVBoxButton
  licenseKey="Sheet license key"
  user={{
    user_id: "default123"
  }}
  onImport={(result, data) => {
    if(result){
      console.log("success");
      console.log(data.row_success + " rows uploaded");
      //custom code
    }else{
      console.log("fail");
      //custom code
    }
  }}
>
  Import
</CSVBoxButton>

Readme

For usage see the guide here - https://help.csvbox.io/getting-started#2-install-code

License

MIT © csvbox-io

Package Sidebar

Install

npm i @csvbox/react

Weekly Downloads

5,813

Version

1.1.9

License

MIT

Unpacked Size

60.7 kB

Total Files

7

Last publish

Collaborators

  • ishwar5
  • aniketrane
  • csvbox-io