-
-
Notifications
You must be signed in to change notification settings - Fork 505
Expand file tree
/
Copy pathsidebar.root.tsx
More file actions
87 lines (81 loc) · 2.49 KB
/
sidebar.root.tsx
File metadata and controls
87 lines (81 loc) · 2.49 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"use client";
import { Sidebar, SidebarItem, SidebarItemGroup, SidebarItems } from "flowbite-react";
import { HiArrowSmRight, HiChartPie, HiInbox, HiShoppingBag, HiTable, HiUser, HiViewBoards } from "react-icons/hi";
import type { CodeData } from "~/components/code-demo";
const code = `
"use client";
import { Sidebar, SidebarItem, SidebarItemGroup, SidebarItems } from "flowbite-react";
import { HiArrowSmRight, HiChartPie, HiInbox, HiShoppingBag, HiTable, HiUser, HiViewBoards } from "react-icons/hi";
export function Component() {
return (
<Sidebar aria-label="Default sidebar example">
<SidebarItems>
<SidebarItemGroup>
<SidebarItem href="#" icon={HiChartPie}>
Dashboard
</SidebarItem>
<SidebarItem href="#" icon={HiViewBoards} label="Pro" labelColor="dark">
Kanban
</SidebarItem>
<SidebarItem href="#" icon={HiInbox} label="3">
Inbox
</SidebarItem>
<SidebarItem href="#" icon={HiUser}>
Users
</SidebarItem>
<SidebarItem href="#" icon={HiShoppingBag}>
Products
</SidebarItem>
<SidebarItem href="#" icon={HiArrowSmRight}>
Sign In
</SidebarItem>
<SidebarItem href="#" icon={HiTable}>
Sign Up
</SidebarItem>
</SidebarItemGroup>
</SidebarItems>
</Sidebar>
);
}
`;
export function Component() {
return (
<Sidebar aria-label="Default sidebar example">
<SidebarItems>
<SidebarItemGroup>
<SidebarItem href="#" icon={HiChartPie}>
Dashboard
</SidebarItem>
<SidebarItem href="#" icon={HiViewBoards} label="Pro" labelColor="dark">
Kanban
</SidebarItem>
<SidebarItem href="#" icon={HiInbox} label="3">
Inbox
</SidebarItem>
<SidebarItem href="#" icon={HiUser}>
Users
</SidebarItem>
<SidebarItem href="#" icon={HiShoppingBag}>
Products
</SidebarItem>
<SidebarItem href="#" icon={HiArrowSmRight}>
Sign In
</SidebarItem>
<SidebarItem href="#" icon={HiTable}>
Sign Up
</SidebarItem>
</SidebarItemGroup>
</SidebarItems>
</Sidebar>
);
}
export const root: CodeData = {
type: "single",
code: {
fileName: "index",
language: "tsx",
code,
},
githubSlug: "sidebar/sidebar.root.tsx",
component: <Component />,
};