NPM
npm install @tableflow/react
Yarn
yarn add @tableflow/react
Create an importer, define your template, and retrieve data on TableFlow.
The full SDK reference is available in our docs.
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
importerId={"b0fadb1d-9888-4fcb-b185-21b984bcb227"} // Use your importer ID from https://app.tableflow.com/importers
modalIsOpen={isOpen}
modalOnCloseTriggered={() => setIsOpen(false)}
darkMode={true}
onComplete={(data) => console.log(data)}
/>
</>
);
}
Need help or have a feature request? Reach out to us over Slack!