We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4da5cb commit 54d771aCopy full SHA for 54d771a
.changeset/add-instant-scroll-behavior.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tanstack/virtual-core': patch
3
4
+
5
+Add 'instant' to ScrollBehavior type to match the W3C spec
packages/virtual-core/src/index.ts
@@ -8,7 +8,7 @@ type ScrollDirection = 'forward' | 'backward'
8
9
type ScrollAlignment = 'start' | 'center' | 'end' | 'auto'
10
11
-type ScrollBehavior = 'auto' | 'smooth'
+type ScrollBehavior = 'auto' | 'smooth' | 'instant'
12
13
export interface ScrollToOptions {
14
align?: ScrollAlignment
0 commit comments