Create a new Space every time Flatfile is opened.
development
environment.
init
command.
public
and src.
The public
directory contains the index.html
file, which is the entry point of the application’s front-end, and the “style.css” file for styling the iframe.
The src
directory contains the main components and logic of the application, including the App.tsx
file, which initializes Flatfile and passes in available options.
publishableKey
and a new Space will be created on each page load. Also, add the content here to your styles.css
.
App.tsx
, at minimum, you’ll need to pass in the publishableKey
. Also, add the content here to your index.tsx
, tsconfig.json
, manifest.json
, and config-overries.js
.
src/workbook.ts
file with this simple Blueprint.App.tsx
to import the Workbook.src/listener.ts
file with this simple recordHook
.App.tsx
to import the listener.themeConfig
to flatfileOptions
in src/App.tsx
, we will now override colors in your Space to match your brand. See all of the options here in the Theming Reference.
listener.ts
with this simple submit action.