ngx-prompt-kit

System Message

Out-of-band notice for actions, errors, and warnings. Distinct from a regular chat message; supports an optional CTA.

Examples

Variants

action / error / warning. Default 'action' looks neutral; the others use semantic color.

Connected to model gpt-4o.
Rate limit reached. Try again in 30s.
Some tool calls were skipped due to permissions.

Filled background

[fill]=true uses a solid tinted background instead of just a border.

Saved to your history.
Network error — retrying...

With CTA

Pass ctaLabel to add a Spartan button on the right.

A new model is available.

Installation

Add the system-message component (and the cn() utility) to your project.

ng generate ngx-prompt-kit:system-message

Component API

PkSystemMessage

PropTypeDefaultDescription
textstring '' Main label (or project via ng-content).
variant"action" | "error" | "warning" "action" Color treatment.
fillboolean false Solid tinted background instead of a border.
iconboolean true Show the default lucide icon for the variant.
ctaLabelstring '' When set, renders a Spartan button on the right.
ctaClickedoutput<void>Fires when the CTA button is clicked.
classstringExtra classes for the wrapper.