主题切换器
在 Next.js 应用程序中在系统、浅色和深色主题之间切换。
- Dependencies (3)
安装
pnpm dlx shadcn@latest add @yourname/theme-switcher
用法
import { ThemeSwitcher } from "@/components/theme-switcher"<ThemeSwitcher />参考
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.