BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aurora/aurora-ai-confirmation

Aurora AI Confirmation

aurora-dinglebear-ai/aurora-ai-confirmation
FreeBlock

Aurora-native confirmation parity surface from AI Elements.

Install it

npx shadcn@latest add https://aurora.dinglebear.ai/r/aurora-ai-confirmation.json

Source

registry/aurora/blocks/ai/elements/confirmation.tsxaurora.dinglebear.ai/r/aurora-ai-confirmation.json
1"use client"
2
3/**
4 * Aurora Confirmation — operator approve/cancel gate for a risky action.
5 *
6 * Visual layer is ported 1:1 from the Claude Design source (icon badge, intent
7 * tint, sunken detail list, right-aligned action row). Architecture stays
8 * shadcn/Aurora: `forwardRef`, `displayName`, `React.memo`, full
9 * `React.HTMLAttributes` spread, and the Radix/cva `Button` for actions.
10 *
11 * This file deliberately re-implements `Confirmation` (rather than re-exporting
12 * the legacy `core` version) so it can carry CD's `intent` + `details` API while
13 * keeping every architectural guarantee. Token-only colors (`--aurora-*`); no
14 * hardcoded hex; no `violet`.
15 */
16
17import * as React from "react"
18import { ChevronRight, CircleAlert, TriangleAlert } from "lucide-react"
19import { Button } from "@/registry/aurora/ui/button"
20
21export type ConfirmationIntent = "default" | "danger"
22
23export interface ConfirmationProps extends React.HTMLAttributes<HTMLDivElement> {
24 title: string
25 description?: string
26 /** Optional list of statements/lines previewing exactly what will run. */
27 details?: React.ReactNode[]
28 /** `danger` swaps the icon to a triangle-alert and uses destructive action styling. */
29 intent?: ConfirmationIntent
30 confirmLabel?: string
31 cancelLabel?: string
32 onConfirm?: React.MouseEventHandler<HTMLButtonElement>
33 onCancel?: React.MouseEventHandler<HTMLButtonElement>
34}
35
36// Styles: registry/aurora/styles/aurora-components.css (@layer aurora-components).
37
38const Confirmation = (
39 { ref,
40 title,
41 description,
42 details,
43 intent = "default",
44 confirmLabel = "Approve",
45 cancelLabel = "Cancel",
46 onConfirm,
47 onCancel,
48 className,
49 ...props
50 }: ConfirmationProps & { ref?: React.Ref<HTMLDivElement> }
51 ) => {
52 const reactId = React.useId()
53 const titleId = `${reactId}-title`
54 const descriptionId = description ? `${reactId}-description` : undefined
55 const Icon = intent === "danger" ? TriangleAlert : CircleAlert
56 const cls = [
57 "aurora-confirm",
58 intent === "danger" && "aurora-confirm--danger",
59 className,
60 ]
61 .filter(Boolean)
62 .join(" ")
63
64 return (
65 <div
66 ref={ref}
67 className={cls}
68 role="alertdialog"
69 aria-labelledby={titleId}
70 aria-describedby={descriptionId}
71 {...props}
72 >
73 <div className="aurora-confirm__head">
74 <span className="aurora-confirm__badge" aria-hidden>
75// … truncated

What it pulls in

npm packages

  • lucide-react@^0.487.0

Other registry items

  • @aurora/aurora-tokens
  • @aurora/aurora-ai-elements
  • @aurora/aurora-components

Files it writes

  • registry/aurora/blocks/ai/elements/confirmation.tsx

Facts

Registry
aurora
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

aurora.dinglebear.ai dinglebear-ai/aurora on GitHub Raw registry item This item as JSON

More from aurora

All 176 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora AI Actionaurora-ai-actionauroraBlocksFree1 dep
Aurora AI Actionsaurora-ai-actionsauroraBlocksFree1 dep
Aurora AI Agentaurora-ai-agentauroraBlocksFree1 dep
Aurora AI Image Gridaurora-ai-ai-image-gridauroraBlocksFree1 dep
Aurora AI Attachmentsaurora-ai-attachmentsauroraBlocksFree1 dep
Aurora AI Audio Playeraurora-ai-audio-playerauroraBlocksFree1 dep
Aurora AI Branchaurora-ai-branchauroraBlocksFree1 dep
Aurora AI Canvasaurora-ai-canvasauroraBlocksFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex