MCPcopy Create free account
hub / github.com/mantinedev/ui.mantine.dev / Shell

Function Shell

components/Shell/Shell.tsx:13–41  ·  view source on GitHub ↗
({ children }: ShellProps)

Source from the content-addressed store, hash-verified

11}
12
13export function Shell({ children }: ShellProps) {
14 return (
15 <AppShell header={{ height: 60 }}>
16 <AppShell.Header className={RemoveScroll.classNames.zeroRight}>
17 <Container size="xl" px="md" className={classes.inner}>
18 <Link href="/" className="mantine-focus-auto">
19 <MantineLogo variant="ui.mantine.dev" size={30} />
20 </Link>
21
22 <HeaderControls
23 visibleFrom="sm"
24 onSearch={searchHandlers.open}
25 githubLink={meta.gitHubLinks.mantineUi}
26 withDirectionToggle={false}
27 discordLink={meta.discordLink}
28 />
29
30 <Group hiddenFrom="sm">
31 <SearchMobileControl onSearch={searchHandlers.open} />
32 <ColorSchemeControl />
33 </Group>
34 </Container>
35 </AppShell.Header>
36 <AppShell.Main>
37 <div className={classes.main}>{children}</div>
38 </AppShell.Main>
39 </AppShell>
40 );
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected