MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Footer

Function Footer

packages/react-aria-components/test/Calendar.test.js:447–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445
446 it('should support setting "null" for method setValue', async () => {
447 const Footer = () => {
448 const state = useContext(CalendarStateContext);
449 const {setValue} = state;
450
451 return (
452 <div>
453 <Button slot={null} className="reset-button" onPress={() => setValue(null)}>
454 Reset value
455 </Button>
456 </div>
457 );
458 };
459
460 let {getByRole} = render(
461 <Calendar

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected