MCPcopy Create free account
hub / github.com/github/docs / ArticleGridLayout

Function ArticleGridLayout

components/article/ArticleGridLayout.tsx:12–33  ·  view source on GitHub ↗
({ intro, topper, toc, children, className }: Props)

Source from the content-addressed store, hash-verified

10 className?: string
11}
12export const ArticleGridLayout = ({ intro, topper, toc, children, className }: Props) => {
13 return (
14 <Container className={className}>
15 {topper && <Box gridArea="topper">{topper}</Box>}
16 {toc && (
17 <SidebarContent
18 gridArea="sidebar"
19 alignSelf="flex-start"
20 className="border-bottom border-lg-0 pb-4 mb-5 pb-xl-0 mb-xl-0"
21 >
22 {toc}
23 </SidebarContent>
24 )}
25
26 {intro && <Box gridArea="intro">{intro}</Box>}
27
28 <Box gridArea="content" data-search="article-body">
29 {children}
30 </Box>
31 </Container>
32 )
33}
34
35const Container = styled(Box)`
36 max-width: 720px;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected