A react component to display your Postgresql table data. Used in Supabase Dashboard app.
TypeScript
204
527 commits
updated Jun 4, 2022
🚨 This repo has been deprecated. 🚨
We've moved the grid component into the main Supabase studio repo to make it easier to work on and to help us roll out bug fixes much quicker. We have transfered all existing issues in this repo, and we continue to welcome contributors over at supabase/supabase.
A react component to display your Postgresql table data.
npm i @supabase/grid
This package requires some peer dependencies, which you need to install by yourself.
npm i react react-dom @supabase/react-data-grid @supabase/ui
<SupabaseGrid
table="countries"
onSqlQuery={async (query: string) => {
// run query and return the result
}}
/>
table SupaTable object or table/view name.
onSqlQuery run sql query.editable enable table editor.headerActions react node to display in grid header.gridProps props to config grid view.schema table/view schema. Defaults to 'public'.storageRef storageRef is used to save state on localstorage.theme grid theme.onAddColumn show create new column button if available.onAddRow show add row button if available.onError error handler.onEditColumn show edit column menu if available.onEditRow show edit row button if available.onDeleteColumn show delete column menu if available.npm startcd examplecp .env.example .envnpm startThis repo is licensed under MIT.
TypeScript
90.5%
CSS
7.3%
JavaScript
2.1%
A react component to display your Postgresql table data. Used in Supabase Dashboard app.
TypeScript
204
527 commits
updated Jun 4, 2022
🚨 This repo has been deprecated. 🚨
We've moved the grid component into the main Supabase studio repo to make it easier to work on and to help us roll out bug fixes much quicker. We have transfered all existing issues in this repo, and we continue to welcome contributors over at supabase/supabase.
A react component to display your Postgresql table data.
npm i @supabase/grid
This package requires some peer dependencies, which you need to install by yourself.
npm i react react-dom @supabase/react-data-grid @supabase/ui
<SupabaseGrid
table="countries"
onSqlQuery={async (query: string) => {
// run query and return the result
}}
/>
table SupaTable object or table/view name.
onSqlQuery run sql query.editable enable table editor.headerActions react node to display in grid header.gridProps props to config grid view.schema table/view schema. Defaults to 'public'.storageRef storageRef is used to save state on localstorage.theme grid theme.onAddColumn show create new column button if available.onAddRow show add row button if available.onError error handler.onEditColumn show edit column menu if available.onEditRow show edit row button if available.onDeleteColumn show delete column menu if available.npm startcd examplecp .env.example .envnpm startThis repo is licensed under MIT.
TypeScript
90.5%
CSS
7.3%
JavaScript
2.1%