System Message

Display contextual information, warnings, or instructions in AI interfaces.

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.

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/system-message.json

Examples

Demo

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 Button

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

Props

SystemMessage

PropTypeDefaultDescription
childrenSnippet-System message body content.
variant"action" | "error" | "warning""action"Visual tone used for the message.
fillbooleanfalseUses a filled background variant instead of an outline.
iconSnippet-Custom icon rendered before the message text.
isIconHiddenbooleanfalseHides the default or custom icon.
cta{ label: string; onClick?: () => void; variant?: ButtonVariant }-Optional call to action rendered at the end of the message.
classstring-Additional CSS classes for the container.