---
title: "Hook Sidebar | Free React & Tailwind Blocks Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/blocks/hook-sidebar"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/blocks/hook-sidebar.tsx"
install_command: "npx motion-ui-skill add hook-sidebar"
dependencies: ["clsx","motion","next","react","tailwind-merge"]
category: "blocks"
subcategory: "blocks"
---

# Hook Sidebar

> A vertical navigation list with a dashed rail that marks the active item.

## Install

```bash
npx motion-ui-skill add hook-sidebar
```

## Dependencies

- `clsx`
- `motion`
- `next`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { HookSidebar as HookSidebar } from "@/components/blocks/hook-sidebar";

export function Example() {
  return (
    <div className="p-6">
      <HookSidebar />
    </div>
  );
}
```

## Source Files

- [components/blocks/hook-sidebar.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/blocks/hook-sidebar.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
