diff --git a/.changeset/marko-virtual-initial.md b/.changeset/marko-virtual-initial.md new file mode 100644 index 00000000..499f9954 --- /dev/null +++ b/.changeset/marko-virtual-initial.md @@ -0,0 +1,5 @@ +--- +'@tanstack/marko-virtual': minor +--- + +Add `@tanstack/marko-virtual` — a headless virtualisation adapter for Marko 6 using the runtime-tags API. Provides `` and `` tags covering fixed, variable, dynamic, grid, smooth-scroll, infinite-scroll, and window virtualisation patterns. diff --git a/docs/config.json b/docs/config.json index 8b5dd21d..8763064c 100644 --- a/docs/config.json +++ b/docs/config.json @@ -35,7 +35,10 @@ { "label": "solid", "children": [ - { "label": "Solid Virtual", "to": "framework/solid/solid-virtual" } + { + "label": "Solid Virtual", + "to": "framework/solid/solid-virtual" + } ] }, { @@ -55,6 +58,15 @@ "to": "framework/vue/vue-virtual" } ] + }, + { + "label": "marko", + "children": [ + { + "label": "Marko Virtual", + "to": "framework/marko/marko-virtual" + } + ] } ] }, @@ -65,8 +77,14 @@ { "label": "Core APIs", "children": [ - { "label": "Virtualizer", "to": "api/virtualizer" }, - { "label": "VirtualItem", "to": "api/virtual-item" } + { + "label": "Virtualizer", + "to": "api/virtualizer" + }, + { + "label": "VirtualItem", + "to": "api/virtual-item" + } ] }, { @@ -249,8 +267,41 @@ "label": "Dynamic" } ] + }, + { + "label": "marko", + "children": [ + { + "to": "framework/marko/examples/fixed", + "label": "Fixed" + }, + { + "to": "framework/marko/examples/variable", + "label": "Variable" + }, + { + "to": "framework/marko/examples/dynamic", + "label": "Dynamic" + }, + { + "to": "framework/marko/examples/grid", + "label": "Grid" + }, + { + "to": "framework/marko/examples/infinite-scroll", + "label": "Infinite Scroll" + }, + { + "to": "framework/marko/examples/smooth-scroll", + "label": "Smooth Scroll" + }, + { + "to": "framework/marko/examples/window", + "label": "Window" + } + ] } ] } ] -} +} \ No newline at end of file diff --git a/docs/framework/marko/examples/dynamic.md b/docs/framework/marko/examples/dynamic.md new file mode 100644 index 00000000..055a27c3 --- /dev/null +++ b/docs/framework/marko/examples/dynamic.md @@ -0,0 +1,12 @@ +--- +title: Marko Dynamic Example +--- + +## Example + +