Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
Implementation
UserMessage API
Common Examples
Basic Usage
Display a message from the user:import { UserMessage } from "@servicetitan/anvil2-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/anvil2-ext-atlas";
function UserMessageError() {
return (
<UserMessage
message="This message failed to send"
isError
onRetry={() => resendMessage()}
/>
);
}
<UserMessage
message="Hello!"
isError={false}
onRetry={handleRetry}
/>
UserMessage Props
The message content to display.
Additional CSS class name for custom styling.
When true, displays the message with error styling.
Callback for retry button. Only shown when isError is true.