聚光灯标志
SVG 徽标,带有光标跟踪渐变突出显示和触觉按压。
功能
- 径向渐变突出显示跟踪光标并描绘 SVG 轮廓。
- 按下标记会通过弹簧改变其路径并发出触觉点击声。
- 跳过触摸设备上的指针跟踪。
这是我的SVG标志,仅供参考。请更换它 在生产中使用此组件之前,请使用您自己的 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.
Every component here is built and maintained by one person. If you enjoy using them, you can sponsor my work.