Skip to content

Commit bb23bff

Browse files
committed
expose cell index to render props
1 parent 953488a commit bb23bff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-aria-components/src/Table.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,8 @@ export const Cell = /*#__PURE__*/ createLeafComponent(TableCellNode, (props: Cel
13801380
isPressed,
13811381
isHovered,
13821382
isSelected,
1383-
id: cell.key
1383+
id: cell.key,
1384+
cellIndex: cell.index
13841385
}
13851386
});
13861387

0 commit comments

Comments
 (0)