---
title: "Smooth Scroll | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/smooth-scroll"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/smooth-scroll.tsx"
install_command: "npx motion-ui-skill add smooth-scroll"
dependencies: ["clsx","lenis","react","tailwind-merge"]
category: "craft"
subcategory: "craft"
---

# Smooth Scroll

> Component from Motion UI: smooth-scroll

## Install

```bash
npx motion-ui-skill add smooth-scroll
```

## Dependencies

- `clsx`
- `lenis`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { SmoothScroll as SmoothScroll } from "@/components/craft/smooth-scroll";

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

## Source Files

- [components/craft/smooth-scroll.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/smooth-scroll.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
