A package for for exporting array data or table data as excel sheet, csv, pdf and tools for copied data to clipboard or printing data. By using this package you can you can export table data and print table data or copy to clipboard all in one place.
Small in Size
All in one
Properly Maintained
What's new on version 3.1.8
Added orientation props to ExportAsPdf component.
Added orientation props to PrintDocument component.
Added a solve for "Error: Orientation can be only..." error when orientation props is not provided
Called when an element is clicks and triggers to open a file dialog
errors
string
Validation Error
data
Array
Read or Converted data
fileInfo
object
Selected file info
FileUpload
Props
Name
Types
Description
Example
acceptType
Function (Required)
File Accept Type
`acceptType={[".pdf"]}`
inputProps
React.HTMLProps (Optional)
Input Props for input field
onChange
Function (Optional)
`onChange={(file:File)=> console.log(file)}`
size
File size for validation (Optional)
Size Need to be define in MB
Exported Options
Name
Types
Description
dragProps
object
Native element props for drag and drop feature
isDragging
boolean
"true" if a file is being dragged
onFileUpload
function
Called when an element is clicks and triggers to open a file dialog
errors
string
Validation Error
fileInfo
object
Selected file info
Migrate to Version 3
In version 3 I added more headless on each component. I update only CopyTextToClipboard, CopyToClipboard, ExportAsCsv, ExportAsExcel, ExportAsPdf, PrintDocument component.
Update this
<AnyOfThoseComponent
data={data}
headers={["Name", "Age", "Something"]}
><button>
Export as Excel
</button></AnyOfThoseComponent>