Skip to content

Data Rights Request Card

A copy-paste cookie & consent component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Cookie & ConsentHTMLCSSany framework

Your data, your choice

Request a copy of what we store, or ask us to delete it.

Copy into your project

HTML
<div class="nuda-ck2-data-rights" role="region" aria-label="Manage your data">
  <p class="nuda-ck2-data-rights__title">Your data, your choice</p>
  <p class="nuda-ck2-data-rights__desc">Request a copy of what we store, or ask us to delete it.</p>
  <div class="nuda-ck2-data-rights__actions">
    <button type="button" class="nuda-ck2-data-rights__btn">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"
           stroke-linecap="round" stroke-linejoin="round" width="14" height="14" aria-hidden="true">
        <path d="M12 3v12M7 10l5 5 5-5" />
        <path d="M4 19h16" />
      </svg>
      Export my data
    </button>
    <button type="button" class="nuda-ck2-data-rights__btn nuda-ck2-data-rights__btn--danger">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"
           stroke-linecap="round" stroke-linejoin="round" width="14" height="14" aria-hidden="true">
        <path d="M4 7h16" />
        <path d="M9 7V4h6v3M6 7l1 13h10l1-13" />
      </svg>
      Delete my data
    </button>
  </div>
</div>
CSS
.nuda-ck2-data-rights {
  width: 296px;
  box-sizing: border-box;
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  animation: _nuda-ck2datarightsIn .45s cubic-bezier(.16,1,.3,1) both;
}

.nuda-ck2-data-rights__title {
  color: #fafafa;
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 .3rem;
}

.nuda-ck2-data-rights__desc {
  color: #777;
  font-size: .7rem;
  line-height: 1.5;
  margin: 0 0 .9rem;
}

.nuda-ck2-data-rights__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.nuda-ck2-data-rights__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #cfcfcf;
  font-size: .73rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s,color .15s;
}

.nuda-ck2-data-rights__btn:hover {
  color: #fafafa;
  border-color: rgba(255,255,255,.24);
}

.nuda-ck2-data-rights__btn:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

.nuda-ck2-data-rights__btn--danger:hover {
  color: #fca5a5;
  border-color: rgba(252,165,165,.4);
}

@keyframes _nuda-ck2datarightsIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ck2-data-rights {
    animation: none !important;
  }
}

How to use Data Rights Request Card

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More cookie & consent components

← Browse all NudaUI components