命令面板

搜索要执行的命令…

0GitHub 星标
Components

聚光灯标志

SVG 徽标,带有光标跟踪渐变突出显示和触觉按压。

加载中
Dependencies (2)

功能

  • 径向渐变突出显示跟踪光标并描绘 SVG 轮廓。
  • 按下标记会通过弹簧改变其路径并发出触觉点击声。
  • 跳过触摸设备上的指针跟踪。

使用场景

  • 英雄部分或页脚中的品牌标记。
  • 404 或即将推出的页面上的徽标。

安装

pnpm dlx shadcn@latest add @yourname/spotlight-logo

用法

该标记呈现自己的 SVG,因此通过替换组件内的路径来带来您自己的艺术作品。将其包裹在一个大小合适的容器中以控制布局。

import { SpotlightLogo } from "@/components/spotlight-logo"
<SpotlightLogo />

无障碍

  • 使用prefers-reduced-motion,突出显示将停止跟踪光标。

致谢

参考

License and usage

  • Free to use and modify in both personal and commercial projects.
  • Attribution is appreciated but not required.
  • Released under the MIT License.

这个页面对你有帮助吗?

命令面板

搜索要执行的命令…