Section 1
Section 2
Section 3
Scroll horizontally →
Scroll Snap
LayoutScroll snap sections
scrollsnapsections
Installation
$
Usage
tsx
import { ScrollSnap } from "@/components/nonaxial/scroll-snap"
export default function Example() {
return (
<ScrollSnap>{/* Your content here */}</ScrollSnap>
)
}Props
| Prop | Type | Default |
|---|---|---|
| children | ReactNode | — |
| className | string | — |