Dev Design Library

Cookie consent

A consent bar that morphs into preferences and folds into a reopen button.

Cookie consent preview
Library
Arc Library
Framework
React
Type
ui
License
MIT
Dependencies
@radix-ui/react-switch, lucide-react, motion
Install
npx shadcn@latest add https://uiarc.dev/r/cookie-consent.json
Files
  • registry/components/cookie-consent/cookie-consent.tsx
  • registry/components/cookie-consent/cookie-consent.module.css
  • registry/components/switch/switch.tsx
  • registry/components/switch/switch.module.css
  • registry/components/button/button.tsx
  • registry/components/button/button.module.css
  • registry/motion-tokens.ts
  • lib/motion-tokens.ts
Source
https://github.com/kuratlielia/arc-library

Categories

More from Arc Library