Svelte Scroll Spy

A navigation component that tracks scroll position and highlights the currently visible section. Supports smooth scrolling, sticky positioning, custom scroll containers, offset handling, and active state callbacks for building interactive page or documentation navigation.

Setup #

  • Svelte
<script lang="ts">
  import { ScrollSpy } from  'flowbite-svelte';
</script>

Usage Examples #

See examples and code.

Component data #

The component has the following props, type, and default values. See types page for type information.

Loading...

GitHub Links #

LLM Link #