forked from kriasoft/react-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.tsx
More file actions
30 lines (25 loc) · 646 Bytes
/
sidebar.tsx
File metadata and controls
30 lines (25 loc) · 646 Bytes
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
/* SPDX-FileCopyrightText: 2014-present Kriasoft */
/* SPDX-License-Identifier: MIT */
import { Sheet, SheetProps } from "@mui/joy";
import { Navigation } from "./navigation";
const width = 260;
export function Sidebar(props: SidebarProps): JSX.Element {
const { sx, ...other } = props;
return (
<Sheet
sx={{
pt: "60px",
px: 2,
borderRight: ({ palette }) => `1px solid ${palette.divider}`,
overflow: "auto",
width,
...sx,
}}
aria-label="Sidebar"
{...other}
>
<Navigation />
</Sheet>
);
}
export type SidebarProps = Omit<SheetProps, "children">;