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

Function MyMenu

packages/react-aria-components/test/Autocomplete.test.tsx:836–860  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

834
835 it('should be able to tab inside a focus scope that contains', async () => {
836 const MyMenu = () => {
837 let {contains} = useFilter({sensitivity: 'base'});
838
839 return (
840 <DialogTrigger>
841 <Button aria-label="Menu">☰</Button>
842 <Popover>
843 <Dialog>
844 <Button>First</Button>
845 <Button>Second</Button>
846 <Autocomplete filter={contains}>
847 <TextField autoFocus aria-label="Search">
848 <Input />
849 </TextField>
850 <Menu>
851 <MenuItem>Open</MenuItem>
852 <MenuItem>Rename…</MenuItem>
853 <MenuItem>Duplicate</MenuItem>
854 </Menu>
855 </Autocomplete>
856 </Dialog>
857 </Popover>
858 </DialogTrigger>
859 );
860 };
861
862 function App() {
863 return (

Callers

nothing calls this directly

Calls 1

useFilterFunction · 0.90

Tested by

no test coverage detected