1.0.5 • Published 4 years ago

@alckor127/react-button-export-excel v1.0.5

Weekly downloads
45
License
MIT
Repository
github
Last release
4 years ago

@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

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago