TableCell

td or th cell. Body HTML in props.text; optional colSpan/rowSpan/scope.

Required Props: id

Structure

Prefer th in thead (and sticky header rows); use scope on th when it clarifies relationships.

Properties

PropertyTypeDescriptionExamples
textstring
HTML string for cell content.
Default: "<p>Cell</p>"
-
asstring
td | th
Cell tag.
Default: "td"
-
colSpaninteger
Column span; omit or 1 for a single column.
-
rowSpaninteger
Row span; omit or 1 for a single row.
-
scopestring
col | row | colgroup | rowgroup
For th cells: col, row, colgroup, or rowgroup.
-
canDeleteboolean
-
Default: true
-
canEditNameboolean
-
Default: true
-
customobject
-
-
classNamestring
Tailwind utilities on the td/th element.
border-base-300 border px-3 py-2 text-left
rootobject
-
-