You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(table): add `onCheckedChange` prop to `Table.CheckCell` and `Table.CheckHead`, aligning with the `Checkbox` component's signature.
6
+
7
+
The new prop exposes an optional second argument with event details, matching Base UI's idiom:
8
+
9
+
```tsx
10
+
<Table.CheckCell
11
+
checked={selected.has(row.id)}
12
+
onCheckedChange={(checked, eventDetails) => {
13
+
toggle(row.id);
14
+
eventDetails?.event.stopPropagation();
15
+
}}
16
+
/>
17
+
```
18
+
19
+
The existing `onValueChange` prop still works but is now deprecated and flagged by the `no-deprecated-props` lint rule. It will be removed in a future major version. Migrate by renaming the prop — the single-argument callback shape is preserved.
20
+
21
+
This change is additive and does not require consumer code changes at this time.
0 commit comments