Examples
Editing CRUD Example
An example of Shadcn Table which shows how to use editing CRUD features
Full CRUD (Create, Read, Update, Delete) functionality can be easily implemented with Shadcn Table, with a combination of editing, toolbar, and row action features.
This example below uses the default "modal" editing mode, where a dialog opens up to edit 1 row at a time.
Check out the other editing modes down below, and the editing guide for more information.
Try it
- Click
Editon the first row. A dialog opens with its fields. - Clear
First Nameand clickSave. The dialog saysFirst Name is Required. - Click
Create New User. An empty dialog opens.
Related guides
Infinite Scrolling Example
An example of Shadcn Table which shows how to implement an infinite scrolling table that fetches data from a remote server as the user scrolls down the table with the useInfiniteQuery hook from react-query
Editing CRUD Inline Cell Example
An example of Shadcn Table which shows how to use editing CRUD Inline cell features