滚动提示

New

首屏底部的向下滚动指示器,两种形态:鼠标轮廓内圆点下落,或两枚 chevron 依次脉冲。跟随 currentColor,可带文字标签,「减少动效」偏好下静态显示。

Mouse
Scroll
Mouse + label
Chevron
Scroll
Chevron + label

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/scroll-hint

API 参考

variant?
"mouse" | "chevron"

Which glyph to render.

mouse
className?
string
label?
string

Optional caption under the glyph, e.g. "Scroll".

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.