MCPcopy Create free account
hub / github.com/arktypeio/arktype / MenuButton

Function MenuButton

ark/docs/components/shell/MobileNav.tsx:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24/** the top nav's menu button, which opens the drawer on phones */
25export const MenuButton = () => (
26 <button
27 type="button"
28 id={menuButtonId}
29 className="tb-icon tb-menu"
30 aria-label="Open navigation"
31 aria-controls="drawer"
32 aria-expanded={useDrawerOpen()}
33 onClick={() => setDrawerOpen(true)}
34 >
35 <MenuIcon aria-hidden />
36 </button>
37)
38
39/** what the open drawer covers, which can't take focus while it is open */
40const backgroundSelector = ".skip, .topbar, #main"

Callers

nothing calls this directly

Calls 2

useDrawerOpenFunction · 0.90
setDrawerOpenFunction · 0.90

Tested by

no test coverage detected