JSPM

@alckor127/react-button-export-excel

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22
  • Score
    100M100P100Q68062F
  • License MIT

Button component to export a json array to excel

Package Exports

  • @alckor127/react-button-export-excel

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alckor127/react-button-export-excel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@alckor127/react-button-export-excel

Button component to export a json array to excel.

NPM JavaScript Style Guide

Install

npm install --save @alckor127/react-button-export-excel

Usage

import React, { Component } from 'react'

import { ButtonExportExcel } from '@alckor127/react-button-export-excel'
import '@alckor127/react-button-export-excel/dist/index.css'

const data = [
  { name: 'John Doe', sex: 'M', age: 28 },
  { name: 'Jane Doe', sex: 'F', age: 27 }
]

class App extends Component {
  render() {
    return (
      <ButtonExportExcel outline data={data} filename='example'>
        ¡Export now!
      </ButtonExportExcel>
    )
  }
}

Props

  • data - is the the json array for the export.
  • filename - is the file name.
  • outline - is the outline style from button.
  • innerRef - is the reference from react.
  • disabled - is when the button is disabled.
  • dark - is the dark style from button.
  • light - is the light style from button.

License

MIT License. Copyright © Alckor127 2020