UseAutoScroll

A hook to enable the creation of containers that automatically scroll to the bottom of their content.

Component Source

Installation

			jsrepo add hooks/use-auto-scroll.svelte
		

Usage

Create a container that automatically scrolls to the bottom.

{@render children?.()}
{#if !autoScroll.isAtBottom} {/if}