MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / CloseButton

Function CloseButton

src/theme/Navbar/MobileSidebar/Header/index.tsx:8–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import NavbarLogo from "@theme/Navbar/Logo";
7
8function CloseButton() {
9 const mobileSidebar = useNavbarMobileSidebar();
10 return (
11 <button
12 type="button"
13 aria-label={translate({
14 id: "theme.docs.sidebar.closeSidebarButtonAriaLabel",
15 message: "Close navigation bar",
16 description: "The ARIA label for close button of mobile sidebar",
17 })}
18 className="clean-btn navbar-sidebar__close"
19 onClick={() => mobileSidebar.toggle()}
20 >
21 <IconClose color="var(--ifm-color-emphasis-600)" />
22 </button>
23 );
24}
25
26export default function NavbarMobileSidebarHeader(): JSX.Element {
27 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected