DocsExamples

Examples

Inline Editing Example

An example of Shadcn Table which shows how to use editing CRUD Inline Row 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 inline "row" editing mode, which allows you to edit a single row at a time with built-in save and cancel buttons.

Check out the other editing modes down below, and the editing guide for more information.

Try it

  1. Click Edit on the first row. Its cells turn into inputs.
  2. Change First Name to Kevin and click Save. The row keeps the new name.
  3. Click Create New User. An empty row opens at the top.
Storybook