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

# Atlas Header – Code

> AtlasHeader is a shared header component for messages and recommendations.

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

> [tab] Implementation
>
> ext-atlas-header-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-header-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { Header } from "@servicetitan/anvil2-ext-atlas";
> import { Card } from "@servicetitan/anvil2";
>
> function App() {
>   return (
>     <Card
>       flexDirection="column"
>       gap={4}
>       background="strong"
>       padding="0"
>       style={{ width: "388px" }}
>     >
>       <Header
>         title="Atlas"
>         onBack={() => console.log("back clicked")}
>         onClose={() => console.log("close clicked")}
>         onViewHistory={() => console.log("view history clicked")}
>         onFullscreen={() => console.log("fullscreen clicked")}
>         onCreateNewChat={() => console.log("new chat clicked")}
>       />
>     </Card>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ### Basic Usage
>
> Default Atlas branding:
>
> ```tsx theme={null}
> import { AtlasHeader } from "@servicetitan/anvil2-ext-atlas";
>
> function DefaultHeader() {
>   return <AtlasHeader />;
> }
> ```
>
> ### Custom Branding
>
> Use custom icon and assistant name:
>
> ```tsx theme={null}
> import { AtlasHeader } from "@servicetitan/anvil2-ext-atlas";
> import CustomLogo from "./custom-logo.svg";
>
> function CustomHeader() {
>   return (
>     <AtlasHeader
>       svgIcon={CustomLogo}
>       assistant="Custom Assistant"
>     />
>   );
> }
> ```
>
> ### With Custom Styling
>
> Apply custom CSS class:
>
> ```tsx theme={null}
> import { AtlasHeader } from "@servicetitan/anvil2-ext-atlas";
>
> function StyledHeader() {
>   return (
>     <AtlasHeader
>       assistant="Atlas"
>       className="custom-header-class"
>     />
>   );
> }
> ```

> [tab] AtlasHeader API
>
> ```tsx theme={null}
> <AtlasHeader
>   svgIcon={CustomIcon}
>   assistant="Atlas"
>   className="custom-class"
> />
> ```
>
> ## `AtlasHeader` Props
>
> **assistant** `string` (default: Atlas)
>
> Custom assistant name to display.
>
> **className** `string`
>
> Additional CSS class name for custom styling.
>
> **svgIcon** `Svg`
>
> Custom icon to display instead of the Atlas logo.


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