Component packs › Herald › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | ||
text | string | ||
allowLabel | string | ||
denyLabel | string | ||
doneText | string | "Notifications are on" | Shown after Allow. Default "Notifications are on". |
onAllow | () => void | ||
onDeny | () => void |
readonly state: 'asking' | 'allowed' | 'dismissed'reset(): voiddestroy(): voidimport PermissionPrompt from './PermissionPrompt';
<PermissionPrompt />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Notifications and toasts.