Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | import {BorderBox, Flex, Position} from '@primer/components'
import React from 'react'
import navItems from '../nav.yml'
import {HEADER_HEIGHT} from './header'
import NavItems from './nav-items'
function Sidebar() {
return (
<Position
position="sticky"
top={HEADER_HEIGHT}
height={`calc(100vh - ${HEADER_HEIGHT}px)`}
minWidth={260}
color="gray.8"
bg="gray.0"
>
<BorderBox
borderWidth={0}
borderRightWidth={1}
borderRadius={0}
height="100%"
style={{overflow: 'auto'}}
>
<Flex flexDirection="column">
<NavItems items={navItems} />
</Flex>
</BorderBox>
</Position>
)
}
export default Sidebar
|