Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ onChange
Function
onChange
packages/react-aria-components/src/ToggleButton.tsx:89–91 ·
view source on GitHub ↗
(isSelected)
Source
from the content-addressed store, hash-verified
87
? {
88
isSelected: groupState.selectedKeys.has(props.id),
89
onChange(isSelected) {
90
groupState.setSelected(props.id!, isSelected);
91
}
92
}
93
: props
94
);
Callers
3
Calendar.test.js
File · 0.50
RangeCalendar.test.tsx
File · 0.50
MonthYearPickersExample
Function · 0.50
Calls
1
setSelected
Method · 0.65
Tested by
no test coverage detected