同意管理器
Next.js 的 Cookie 和跟踪同意横幅,基于 c15t 构建。
这太棒了,真是个圆满的时刻(c15t 的原型其实就用了 shadcn)。也很希望能把它放进我们的文档,并在我们的 Discord 里分享!
Christopher Burns, c15t.com 创始人
- Dependencies (1)
- Registry (1)
功能
建立在 c15t 之上。
安装
pnpm dlx shadcn@latest add @yourname/consent-manager
用法
使用 ConsentManager 组件包装您的应用程序:
import { ConsentManager } from "@/components/consent-manager"
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<ConsentManager>{children}</ConsentManager>
</body>
</html>
)
}有关自定义和高级用法,请参阅 c15t 的文档。
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.