Overlays
Alert dialog
Available forNativeWeb
confirmations
API
<AlertDialog>…<AlertDialogCancel /><AlertDialogAction /></AlertDialog>Get it
Already in every copy of the native kit:
import { AlertDialog } from '@/components/ui/alert-dialog';Details
- Exports
AlertDialog- Packages
- @rn-primitives/alert-dialog@^1.5.2, react-native-reanimated@4.5.1, react-native-screens@~4.26.0
- Installs with
- @kit-native/button, @kit-native/lib-utils, @kit-native/text, rnr/native-only-animated-view
- Also searched as
- confirm, destructive confirmation, are you sure
- Registry JSON
- /r/native/alert-dialog.json
Usage
The confirm button says what happens (“Delete project”), never “OK”.
Get it
Already in every copy of the web kit:
import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogAction, AlertDialogCancel } from '@/components/ui/alert-dialog';Details
- Exports
AlertDialog,AlertDialogTrigger,AlertDialogContent,AlertDialogAction,AlertDialogCancel- Also searched as
- confirm
- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.