VexellDocs · v1.5

AI primitive

GuardrailNotice

Inline alert that explains why a model declined or partially refused — content policy, jailbreak detection, off-topic. Brand-friendly default styles.

Usage

Pick your edition with the tabs. Selection syncs across all docs.

tsx
import { GuardrailNotice } from '@/components/molecules'

<GuardrailNotice
  kind="content-policy"
  title="Content policy"
  detail="The request was redirected because it includes…"
  onDismiss={() => setOpen(false)}
/>

Props

Same surface in both editions; HTML version exposes equivalents through Alpine x-data.

PropTypeDefaultDescription
kind"content-policy" | "jailbreak" | "off-topic" | "rate-limit""content-policy"Determines icon + color tone.
titlestringShort label.
detailstringOptional one-line explanation.
onDismiss() => voidWhen provided, shows a dismiss button.

Accessibility

  • role

    role='alert' so screen readers announce immediately.

  • contrast

    Warning/danger tones tested AA in both themes.

Read next