TextConfirmDialogDemo() — supabase Function Reference
Architecture documentation for the TextConfirmDialogDemo() function in text-confirm-dialog-demo.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/design-system/registry/default/example/text-confirm-dialog-demo.tsx lines 7–36
export default function TextConfirmDialogDemo() {
const [visible, setVisible] = useState(false)
const bucketName = 'profile-pictures'
return (
<>
<Button type="danger" onClick={() => setVisible(true)}>
Show Text Confirm Dialog
</Button>
<TextConfirmModal
visible={visible}
size="small"
variant="destructive"
title="Delete bucket"
confirmPlaceholder={bucketName}
confirmString={bucketName}
confirmLabel="Delete bucket"
loading={false}
onConfirm={() => setVisible(false)}
onCancel={() => setVisible(false)}
>
<p className="text-sm">
Your bucket <span className="font-medium text-foreground">{bucketName}</span> and all of
its contents will be permanently deleted. This action cannot be undone.
</p>
</TextConfirmModal>
</>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free