Inline Cell Edit

Click to edit table cell text: the value turns into an input on click, saves on Enter or blur and cancels on Escape. Built for editable React data grids.

src/registry/ui/inline-cell-edit.tsx/r/inline-cell-edit.json

Installation#

bash
npx shadcn@latest add @minidev/inline-cell-edit

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/inline-cell-edit.json

Usage#

tsx
import { InlineCellEdit } from "@/components/ui/inline-cell-edit"

export function Example() {
  return <InlineCellEdit />
}

API reference#

InlineCellEdit props
PropTypeDefault
value*string-
onChange(v: string) => void-
classNamestring-

* required

Dependencies#

npm

React only

Built from

All data table components