BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/hex-ui/sidebar-2

Sidebar-2

hex-ui/sidebar-2
FreeBlock

A sidebar built for developer app dashboards

Live preview

live · rendered by the registry
Rendered by hex-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://hexui.sh/r/sidebar-2.json

Source

registry/blocks/sidebar/sidebar-2/source/app/sidebar/page.tsxhexui.sh/r/sidebar-2.json
1import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"
2import { AppHeader } from "../../components/app-header"
3import { AppSidebar } from "../../components/app-sidebar"
4
5// Customize the expanded sidebar width via the `--sidebar-width` CSS variable.
6const SIDEBAR_PROVIDER_STYLE = {
7 "--sidebar-width": "14rem",
8} as React.CSSProperties
9
10export default function Page() {
11 return (
12 <SidebarProvider defaultOpen={false} className="min-h-0 flex-1" style={SIDEBAR_PROVIDER_STYLE}>
13 <div className="flex min-h-svh w-full flex-col">
14 <AppHeader />
15
16 <div className="flex min-h-0 flex-1">
17 <AppSidebar />
18
19 <SidebarInset className="bg-sidebar">
20 {/* This area acts as a placeholder canvas for the page content preview. */}
21 <div className="flex flex-1 flex-col p-4">
22 <div className="min-h-screen flex-1 rounded-xl bg-muted/50 md:min-h-min" />
23 </div>
24 </SidebarInset>
25 </div>
26 </div>
27 </SidebarProvider>
28 )
29}

What it pulls in

npm packages

  • lucide-react

Other registry items

  • avatar
  • button
  • dropdown-menu
  • sidebar
  • tooltip

Files it writes

  • registry/blocks/sidebar/sidebar-2/source/app/sidebar/page.tsx
  • registry/blocks/sidebar/sidebar-2/source/components/app-brand.tsx
  • registry/blocks/sidebar/sidebar-2/source/components/app-header.tsx
  • registry/blocks/sidebar/sidebar-2/source/components/app-sidebar.tsx
  • registry/blocks/sidebar/sidebar-2/source/components/nav-main.tsx

Facts

Registry
hex-ui
Type
registry:block
Access
Free
Files written
5
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on hex-ui hexui.sh hexui-sh/ui on GitHub Raw registry item This item as JSON

More from hex-ui

All 34 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Banner-1banner-1hex-uiBlocksFree1 dep · 2 files
Banner-2banner-2hex-uiBlocksFree1 dep · 2 files
Cta-1cta-1hex-uiBlocksFree1 dep · 2 files
Cta-2cta-2hex-uiBlocksFree1 dep · 2 files
Cta-3cta-3hex-uiBlocksFree1 dep · 2 files
Cta-4cta-4hex-uiBlocksFree1 dep · 2 files
Faq-1faq-1hex-uiBlocksFreeno deps · 3 files
Faq-2faq-2hex-uiBlocksFreeno deps · 3 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex