Skip to content

Table with editable cells

A table whose values are edited in place with mouse or keyboard: Enter saves, Escape cancels, input is checked and the change announced.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

For a small management tool (stock, production, prices, rota), this component lets you fix a value right in the table. Each value is a button whose accessible name says what it edits; activating it swaps the button for an already-selected field. Enter saves, Escape cancels and restores the original value, leaving the field saves too; focus returns to the value. Input is checked (a whole number for a quantity, a price with one or two decimals, a dot accepted and turned into a comma) with an error message in an alert role and aria-invalid, and every change is announced to screen readers. Server-side saving goes in the commit function. 44 px targets, visible focus, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: a bakery's next-day batch.

Code

Loading the code…

The code of this component in

Archive contents

tableau-cellules-modifiables-html-tailwind.zip3 files · 5 Ko

  • index.html20 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A documentation table showing where a kit or component has been tested (static HTML, WordPress, Elementor, Webflow, v0…), with status, last test date and a remark, filterable by status.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A table of the towns and postcodes a tradesperson covers, with response time and travel fee, filtered by search and by zone.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A timetable table sorted by column and filtered with level and free-place chips, whose rows each become a card on phones.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A filterable table whose visible rows export in one click to a CSV file that opens cleanly in Excel or LibreOffice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component