Component packs › Herald › Permission Prompt

Permission Prompt

It drops in and its bell rings once to ask; Allow rings it twice more and folds the card to a short confirmation.

Permission Prompt is a prompt from Herald, a component pack with 6 notification components: Notifications with weight: toasts that land and get thrown, and a bell that really rings. Price: $2 for the whole pack.

Built with: bell rings to ask, confirmation fold, slides away on Not now.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Permission Prompt props

PropTypeDefaultDescription
titlestring
textstring
allowLabelstring
denyLabelstring
doneTextstring"Notifications are on"Shown after Allow. Default "Notifications are on".
onAllow() => void
onDeny() => void

Methods on the ref

Use it in React

import PermissionPrompt from './PermissionPrompt';

<PermissionPrompt />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Herald

Good for: Notifications and toasts.