Skip to content

Latest commit

 

History

History
 
 

react-sdk

TableFlow

The Open Source CSV Importer

Getting Started

1. Install the TableFlow React SDK

NPM

npm install @tableflow/react

Yarn

yarn add @tableflow/react

2. Add the Importer to your application

Create an importer, define your template, and retrieve data at https://app.tableflow.com/importers

import { useState } from "react";
import { TableFlowImporter } from "@tableflow/react";

function MyComponent() {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <>
      <button onClick={() => setIsOpen(true)}>Open TableFlow Importer</button>

      <TableFlowImporter
        isOpen={isOpen}
        onRequestClose={() => setIsOpen(false)}
        importerId={"53a84496-819d-4ec6-93b7-b4b56fb676ad"} // Replace with your importer ID from https://app.tableflow.com/importers
        darkMode={true}
        primaryColor="#7A5EF8"
        closeOnClickOutside={true}
        metadata={"{\"userId\": 1234, \"userEmail\": \"[email protected]\"}"}
      />
    </>
  );
}


Need help or have a feature request? Reach out to us over Slack!