8-bit Dashboard 01
8bitcn/dashboard-01FreeBlock
A complete 8-bit styled dashboard with sidebar navigation, stats cards, charts, and data table with drag-and-drop functionality.
Install it
npx shadcn@latest add https://www.8bitcn.com/r/dashboard-01.jsonSource
1import { Calendar, Home, Inbox, Search, Settings } from "lucide-react";2import { Suspense } from "react";3import { DashboardHeader } from "@/components/dashboard-header";4import { DataTable } from "@/components/data-table";5import { SectionCards } from "@/components/section-cards";6import ChartBarMultiple from "@/components/ui/8bit/blocks/chart-bar";7import {8 Card,9 CardContent,10 CardHeader,11 CardTitle,12} from "@/components/ui/8bit/card";13import {14 Sidebar,15 SidebarContent,16 SidebarGroup,17 SidebarGroupContent,18 SidebarGroupLabel,19 SidebarInset,20 SidebarMenu,21 SidebarMenuButton,22 SidebarMenuItem,23 SidebarProvider,24} from "@/components/ui/sidebar";2526import data from "./data.json";2728const items = [29 {30 title: "Home",31 url: "#",32 icon: Home,33 },34 {35 title: "Inbox",36 url: "#",37 icon: Inbox,38 },39 {40 title: "Calendar",41 url: "#",42 icon: Calendar,43 },44 {45 title: "Search",46 url: "#",47 icon: Search,48 },49 {50 title: "Settings",51 url: "#",52 icon: Settings,53 },54];5556export default function Page() {57 return (58 <SidebarProvider59 style={60 {61 "--sidebar-width": "calc(var(--spacing) * 72)",62 "--header-height": "calc(var(--spacing) * 12)",63 } as React.CSSProperties64 }65 >66 <div className="flex h-screen w-full border">67 <Sidebar className="retro border-foreground border-r-4 dark:border-ring">68 <SidebarContent>69 <SidebarGroup>70 <SidebarGroupLabel>Application</SidebarGroupLabel>71 <SidebarGroupContent>72 <SidebarMenu>73 {items.map((item) => (74 <SidebarMenuItem key={item.title}>75 <SidebarMenuButton asChild>76 <a href={item.url}>77 <item.icon />78 <span>{item.title}</span>79 </a>80 </SidebarMenuButton>81 </SidebarMenuItem>82 ))}83 </SidebarMenu>84 </SidebarGroupContent>85 </SidebarGroup>86 </SidebarContent>87 </Sidebar>88 <SidebarInset>89 <DashboardHeader />90 <div className="flex flex-1 flex-col">91 <div className="@container/main flex flex-1 flex-col gap-2">92 <div className="flex flex-col gap-4 py-4 md:gap-6 md:py-6">93 <SectionCards />94 <div className="px-4 lg:px-6">95// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from 8bitcn
All 121 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 8-bit Advanced 1advanced1 | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Advanced 2advanced2 | 8bitcn | Blocks | Free | no deps · 5 files | |
| 8-bit Advanced 3advanced3 | 8bitcn | Blocks | Free | no deps · 6 files | |
| 8-bit Audio Settingsaudio-settings | 8bitcn | Blocks | Free | 2 deps · 7 files | |
| 8-bit Chapter Introchapter-intro | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Character Sheetcharacter-sheet | 8bitcn | Blocks | Free | no deps · 9 files | |
| 8-bit Chartchart | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Chart Area Stepchart-area-step | 8bitcn | Blocks | Free | no deps · 3 files |
