Sidebar 12

New

A quiet, text-first docs sidebar: a page tree with add-page buttons on hover, favourites, a trash you can restore from, and the whole sidebar slides away on toggle.

Installation

pnpm dlx shadcn@latest add https://kagadmodyaa.vercel.app/r/sidebar-12.json

Needs a React + Tailwind project set up with shadcn. Copies the block's files into your project, along with the components it uses, so you can edit all of it.

Files

What the command adds to your project, and where.

  • app/sidebar-12/page.tsx

    The page itself, at the route it is meant for. Move or rename it to suit your app.

  • components/sidebar-12/cobble-data.ts

    A component the page imports. Edit it freely.

  • components/sidebar-12/cobble-sidebar.tsx

    A component the page imports. Edit it freely.

  • components/sidebar-12/cobble.tsx

    A component the page imports. Edit it freely.

  • components/sidebar-12/icons.tsx

    A component the page imports. Edit it freely.

It also installs the components it is built from, unless you already have them: Breadcrumb, Button, Dropdown Menu, Input, Popover, Separator, Sidebar.

The block uses one accent colour. Installing adds a --brand variable to your global CSS (an existing one is left alone); change it to match your product.

Links, copy and the product name are placeholders; swap in your own. Where a block has a form, its submit handler is a stub for your own request.

More in Sidebar

See all 12 Sidebar blocks