This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/components/Application/Sidebar/SidebarList.tsx

29 lines
636 B
TypeScript
Raw Normal View History

2021-10-24 05:19:39 +02:00
export interface SidebarListProps extends React.ComponentPropsWithRef<'ul'> {}
export const SidebarList: React.FC<SidebarListProps> = (props) => {
const { children, ...rest } = props
return (
<>
<ul {...rest} className='sidebar-list'>
{children}
</ul>
<style jsx>
{`
.sidebar-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-flow: column wrap;
overflow-y: auto;
overflow-x: hidden;
flex-direction: row !important;
}
`}
</style>
</>
)
}