System Message

Display contextual information, warnings, or instructions in AI interfaces

Examples

Basic system message

This conversation is visible to your team. Avoid sharing sensitive personal data.
You can switch to a private workspace at any time from the header.

Filled variants

The model is running in reasoning mode. Responses might take slightly longer.
Context window is close to the limit. Summarize the conversation or archive older messages.
The tool integration failed. Review the API credentials before retrying the request.

With CTA

This workspace enforces human review. Make sure a teammate signs off on the final response before sending it to the customer.

Installation

npx shadcn add "https://prompt-kit.com/c/system-message.json"

Component API

SystemMessage

PropTypeDefaultDescription
childrenReact.ReactNodeContent displayed inside the system message
variant"action" | "warning" | "error""action"Severity of the message, controlling text and icon styles
fillbooleanfalseWhen true, applies a semantic background color and hides the border
iconReact.ReactNodeCustom icon to display instead of the default severity icon
isIconHiddenbooleanfalseHides the icon entirely when set to true
ctaCTAConfigConfiguration for the optional call-to-action button
classNamestringAdditional CSS classes
...propsReact.HTMLAttributes<HTMLDivElement>Additional div props

CTA configuration

PropertyTypeDefaultDescription
labelstringText displayed inside the button
onClick() => voidOptional click handler
variant"solid" | "outline" | "ghost" | React.ComponentProps<typeof Button>["variant"]"solid"Maps to your button variants; "solid" uses the default button style

When cta is provided, SystemMessage renders a small Button next to the message content.