Ai Prompt Injection Warning
A production-scale, light + dark Ai Prompt Injection Warning component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add ai-prompt-injection-warningUsage
import { AIPromptInjectionWarning } from "@lerpa/ui";
<AIPromptInjectionWarning />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| detectedPhrase | string | — | |
| fullPrompt | string | — | |
| confidence | number | — | |
| severity | "low" | "med" | "high" | — | |
| onDismiss | () => void | — | |
| onBlock | () => void | — | |
| accent | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.