Skip to main content

Common Examples

Basic Usage

Display a message from the user:
import { UserMessage } from "@servicetitan/ext-atlas";

function UserMessageExample() {
  return <UserMessage message="Hello, I need help with scheduling." />;
}

Error State with Retry

Display a failed message with retry option:
import { UserMessage } from "@servicetitan/ext-atlas";

function UserMessageError() {
  return (
    <UserMessage
      message="This message failed to send"
      isError
      onRetry={() => resendMessage()}
    />
  );
}
Last modified on February 12, 2026