#Working With Dynamic Table if no data
7 messages · Page 1 of 1 (latest)
you can add this on tableBody example
<TableBody
emptyContent={"No data to display."}
items={data}
>
{(item) => (
<TableRow key={item.id}>
{(columnKey) => <TableCell>{renderCell(item, columnKey)}</TableCell>}
</TableRow>
)}
</TableBody>
this work show message if the data.lenght is 0
Hi @shy pebble , emptyContent does not exist in this context
Using which version of NextUI?
im running this version: "@nextui-org/react": "^1.0.0-beta.13"