BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/sidebar
This component no longer exists. It was in shadcn/ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

sidebar

agileflow-projectquestorg/sidebar
RemovedComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/sidebar.json

Source

registry/radix-nova/ui/sidebar.tsxraw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/sidebar.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { cva, type VariantProps } from "class-variance-authority"
5import { Slot } from "radix-ui"
6
7import { cn } from "@/registry/bases/radix/lib/utils"
8import { Button } from "@/registry/bases/radix/ui/button"
9import { Input } from "@/registry/bases/radix/ui/input"
10import { Separator } from "@/registry/bases/radix/ui/separator"
11import {
12 Sheet,
13 SheetContent,
14 SheetDescription,
15 SheetHeader,
16 SheetTitle,
17} from "@/registry/bases/radix/ui/sheet"
18import { Skeleton } from "@/registry/bases/radix/ui/skeleton"
19import {
20 Tooltip,
21 TooltipContent,
22 TooltipTrigger,
23} from "@/registry/bases/radix/ui/tooltip"
24import { useIsMobile } from "@/registry/new-york-v4/hooks/use-mobile"
25import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
26
27const SIDEBAR_COOKIE_NAME = "sidebar_state"
28const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
29const SIDEBAR_WIDTH = "16rem"
30const SIDEBAR_WIDTH_MOBILE = "18rem"
31const SIDEBAR_WIDTH_ICON = "3rem"
32const SIDEBAR_KEYBOARD_SHORTCUT = "b"
33
34type SidebarContextProps = {
35 state: "expanded" | "collapsed"
36 open: boolean
37 setOpen: (open: boolean) => void
38 openMobile: boolean
39 setOpenMobile: (open: boolean) => void
40 isMobile: boolean
41 toggleSidebar: () => void
42}
43
44const SidebarContext = React.createContext<SidebarContextProps | null>(null)
45
46function useSidebar() {
47 const context = React.useContext(SidebarContext)
48 if (!context) {
49 throw new Error("useSidebar must be used within a SidebarProvider.")
50 }
51
52 return context
53}
54
55function SidebarProvider({
56 defaultOpen = true,
57 open: openProp,
58 onOpenChange: setOpenProp,
59 className,
60 style,
61 children,
62 ...props
63}: React.ComponentProps<"div"> & {
64 defaultOpen?: boolean
65 open?: boolean
66 onOpenChange?: (open: boolean) => void
67}) {
68 const isMobile = useIsMobile()
69 const [openMobile, setOpenMobile] = React.useState(false)
70
71 // This is the internal state of the sidebar.
72 // We use openProp and setOpenProp for control from outside the component.
73 const [_open, _setOpen] = React.useState(defaultOpen)
74 const open = openProp ?? _open
75 const setOpen = React.useCallback(
76 (value: boolean | ((value: boolean) => boolean)) => {
77 const openState = typeof value === "function" ? value(open) : value
78 if (setOpenProp) {
79 setOpenProp(openState)
80 } else {
81 _setOpen(openState)
82 }
83
84 // This sets the cookie to keep the sidebar state.
85// … truncated

What it pulls in

Other registry items

  • button
  • separator
  • sheet
  • tooltip
  • input
  • use-mobile
  • skeleton

Files it writes

  • registry/radix-nova/ui/sidebar.tsx

Facts

Registry
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
6 days ago

Go to the source

agileflow.projectquestorg.com projectquestorg/AgileFlow on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex