Julien Thibeaut

System Message

AI chats 54

About

A banner-style alert component for surfacing warnings, errors, or contextual instructions inside AI chat interfaces, with optional icon and call-to-action button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds System Message to your project and fits it to your theme.

Code

How System Message is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SystemMessage } from "@/components/ui/system-message";

export default function SystemMessageDemo() {
  return (
    <div className="flex w-full max-w-md flex-col gap-3">
      <SystemMessage variant="action">
        This conversation is visible to your team. Avoid sharing sensitive
        personal data.
      </SystemMessage>

      <SystemMessage variant="warning" fill>
        Context window is close to the limit. Summarize the conversation or
        archive older messages.
      </SystemMessage>

      <SystemMessage
        variant="error"
        cta={{ label: "Retry", onClick: () => {} }}
      >
        The tool integration failed. Review the API credentials before retrying
        the request.
      </SystemMessage>
    </div>
  );
}

Dependencies

More by Julien Thibeaut

View all
  • Dock

    Dock

    3.1K
  • Text Effect

    Text Effect

    1.6K
  • Infinite Slider

    Infinite Slider

    1.5K
  • Text Shimmer

    Text Shimmer

    1.3K
  • Text Scramble

    Text Scramble

    1.1K
  • Progressive blur

    Progressive blur

    683
  • Glow Effect

    Glow Effect

    610
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    535

More in AI chats

View all
  • AI Actions

    AI Actions

    319
  • Agent Chat

    Agent Chat

    17
  • Message Thread

    Message Thread

    35
  • Color Picker

    Color Picker

    81
  • AI Task List

    AI Task List

    160
  • Modal Card

    Modal Card

    101
  • Quota Banner

    Quota Banner

    21
  • Approval Card

    Approval Card

    14