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

# Rail TOC

> A table of contents with a paper plane that flies to the section you're reading.

## Install

```bash
npx motion-ui-skill add rail-toc
```

## Dependencies

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

## Usage

```tsx
"use client";

import RailToc from "@/components/blocks/rail-toc";

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

## Source Files

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