DocsExamples

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

  1. Click Edit on the first row. A dialog opens with its fields.
  2. Clear First Name and click Save. The dialog says First Name is Required.
  3. Click Create New User. An empty dialog opens.
Storybook