Interactivity

Scroll Behavior

Utilities for controlling the scroll behavior of an element.

Basic usage

Adding smooth scrolling

Use the scroll-smooth utilities to enable smooth scrolling within an element.

<html className="scroll-smooth">
  <!-- ... -->
</html>