> ## 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.

# Welcome – Code

> Welcome is an onboarding screen displayed to new users before they begin chatting.

> [!WARNING]
>
> Atlas is deprecated. Use [AI Kit](https://anvil.servicetitan.com/docs/building-agentic-experiences) for any new Atlas experiences.

> [tab] Implementation
>
> ext-atlas-welcome-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-welcome-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { Welcome } from "@servicetitan/anvil2-ext-atlas";
> import { Card } from "@servicetitan/anvil2";
>
> function App() {
>   return (
>     <Card style={{ height: "600px", width: "388px" }}>
>       <Welcome
>         onContinue={() => console.log("continue clicked")}
>         title="Welcome to Atlas"
>         subtitle="Your AI Assistant"
>       />
>     </Card>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ### Basic Usage
>
> Display the onboarding welcome screen:
>
> ```tsx theme={null}
> import { Welcome } from "@servicetitan/anvil2-ext-atlas";
>
> function WelcomeScreen() {
>   const [showWelcome, setShowWelcome] = useState(true);
>
>   if (!showWelcome) {
>     return <ChatInterface />;
>   }
>
>   return (
>     <Welcome
>       title="Welcome to Atlas"
>       subtitle="Your AI Assistant"
>       onContinue={() => setShowWelcome(false)}
>     />
>   );
> }
> ```
>
> ### Conditional Screen Display
>
> Switch between welcome and chat states:
>
> ```tsx theme={null}
> import { Welcome, ChatWindow, Content } from "@servicetitan/anvil2-ext-atlas";
>
> function AtlasApp() {
>   const [showWelcome, setShowWelcome] = useState(true);
>
>   if (showWelcome) {
>     return (
>       <Welcome
>         title="Welcome to Atlas"
>         onContinue={() => {
>           setShowWelcome(false);
>           initializeChat();
>         }}
>       />
>     );
>   }
>
>   return (
>     <ChatWindow open>
>       <Content>{/* messages */}</Content>
>     </ChatWindow>
>   );
> }
> ```
>
> ### With Test ID
>
> Include test ID for automation:
>
> ```tsx theme={null}
> import { Welcome } from "@servicetitan/anvil2-ext-atlas";
>
> function WelcomeWithTestId() {
>   return (
>     <Welcome
>       title="Welcome to Atlas"
>       subtitle="Your AI Assistant"
>       onContinue={handleContinue}
>       continueButtonId="welcome-continue-btn"
>     />
>   );
> }
> ```

> [tab] Welcome API
>
> ```tsx theme={null}
> <Welcome
>   title="Welcome to Atlas"
>   subtitle="Your AI Assistant"
>   onContinue={handleContinue}
>   continueButtonId="welcome-continue"
> />
> ```
>
> ## `Welcome` Props
>
> **onContinue** `() =\> void` *required*
>
> Callback fired when the user clicks the Continue button.
>
> **continueButtonId** `string`
>
> Test ID for the continue button.
>
> **subtitle** `string`
>
> Secondary heading text displayed below the title.
>
> **title** `string`
>
> Main heading text displayed on the welcome screen.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.