From eddb5e67f077c1c76c3b2f89d18cb52d413f6e5b Mon Sep 17 00:00:00 2001 From: Andrew Hoang Date: Sun, 26 Jul 2026 21:51:43 +0700 Subject: [PATCH] docs: add TOC minimap + mobile nav and heading anchors --- .../(shell)/docs/components/asciify/page.tsx | 1 + src/app/(shell)/docs/components/bend/page.tsx | 1 + .../(shell)/docs/components/blaze/page.tsx | 1 + .../(shell)/docs/components/bubble/page.tsx | 1 + .../(shell)/docs/components/cloth/page.tsx | 1 + .../(shell)/docs/components/clouds/page.tsx | 1 + .../docs/components/dithered-object/page.tsx | 9 +- .../(shell)/docs/components/droplets/page.tsx | 1 + .../(shell)/docs/components/frost/page.tsx | 1 + .../docs/components/glass-object/page.tsx | 9 +- .../(shell)/docs/components/glass/page.tsx | 1 + .../(shell)/docs/components/glitch/page.tsx | 1 + src/app/(shell)/docs/components/grid/page.tsx | 1 + .../docs/components/hex-float/page.tsx | 1 + .../(shell)/docs/components/laser/page.tsx | 15 ++ .../(shell)/docs/components/liquid/page.tsx | 1 + .../(shell)/docs/components/magnify/page.tsx | 1 + .../docs/components/particle-object/page.tsx | 9 +- .../docs/components/particle-reveal/page.tsx | 19 +- .../docs/components/particle-scroll/page.tsx | 1 + src/app/(shell)/docs/components/peel/page.tsx | 19 +- .../docs/components/retro-dither/page.tsx | 1 + .../(shell)/docs/components/ripple/page.tsx | 1 + .../(shell)/docs/components/shatter/page.tsx | 1 + src/app/(shell)/docs/components/vhs/page.tsx | 1 + src/app/(shell)/layout.tsx | 5 +- src/components/docs/component-doc.tsx | 220 ++++++++++-------- src/components/docs/copy-button.tsx | 6 +- src/components/docs/heading-anchor.tsx | 66 ++++++ src/components/docs/toc-layout.tsx | 56 +++++ src/components/docs/toc-minimap.tsx | 165 +++++++++++++ src/components/docs/toc-mobile.tsx | 51 ++++ src/components/ui/hover-card.tsx | 53 +++++ src/demos/demo-image-cycler.tsx | 11 +- 34 files changed, 625 insertions(+), 107 deletions(-) create mode 100644 src/components/docs/heading-anchor.tsx create mode 100644 src/components/docs/toc-layout.tsx create mode 100644 src/components/docs/toc-minimap.tsx create mode 100644 src/components/docs/toc-mobile.tsx create mode 100644 src/components/ui/hover-card.tsx diff --git a/src/app/(shell)/docs/components/asciify/page.tsx b/src/app/(shell)/docs/components/asciify/page.tsx index 6d76a59..34fc685 100644 --- a/src/app/(shell)/docs/components/asciify/page.tsx +++ b/src/app/(shell)/docs/components/asciify/page.tsx @@ -135,6 +135,7 @@ export default async function AsciifyPage() { tags={["html-in-canvas"]} requiresHtmlInCanvas apiReference={API_REFERENCE} + demoSection beforeInstall={ -

Demo

+

+ Demo +

Drag to orbit the object, switch the dither pattern, then open the controls to swap in your own GLB/glTF model, SVG, or image by URL diff --git a/src/app/(shell)/docs/components/droplets/page.tsx b/src/app/(shell)/docs/components/droplets/page.tsx index b16c201..0081534 100644 --- a/src/app/(shell)/docs/components/droplets/page.tsx +++ b/src/app/(shell)/docs/components/droplets/page.tsx @@ -151,6 +151,7 @@ export default async function DropletsPage() { installItem="droplets" tags={["html-in-canvas"]} apiReference={API_REFERENCE} + demoSection beforeInstall={ -

Demo

+

+ Demo +

Drag to orbit the glass, then open the controls to tune the refraction or swap in your own model, SVG, or image by URL or from diff --git a/src/app/(shell)/docs/components/glass/page.tsx b/src/app/(shell)/docs/components/glass/page.tsx index cd578ca..dfb3f4a 100644 --- a/src/app/(shell)/docs/components/glass/page.tsx +++ b/src/app/(shell)/docs/components/glass/page.tsx @@ -147,6 +147,7 @@ export default async function GlassPage() { installItem="glass" tags={["html-in-canvas"]} apiReference={API_REFERENCE} + demoSection beforeInstall={ +

+ Demo +

+

+ Scroll to see new content print in from behind the laser beam, hot and shimmering. +

+ + } />