Rail TOC

Rail TOC: A table of contents with a paper plane that flies to the section you're reading. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Rail TOC

npx motion-ui-skill add rail-toc

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Rail TOC

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

Install

npx motion-ui-skill add rail-toc

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

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

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

Browse this category