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

# Loader – Code

> Loader is an animated loading indicator for pending assistant responses.

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

> [tab] Implementation
>
> ext-atlas-loader-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-loader-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { Loader } from "@servicetitan/anvil2-ext-atlas";
> import { Flex } from "@servicetitan/anvil2";
>
> function App() {
>   return (
>     <Flex direction="column" gap={4}>
>       <Loader />
>     </Flex>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ### Basic Usage
>
> Display while waiting for a response:
>
> ```tsx theme={null}
> import { Loader } from "@servicetitan/anvil2-ext-atlas";
>
> function LoadingState() {
>   return <Loader />;
> }
> ```
>
> ### Within a Message
>
> Show loading state in an assistant message:
>
> ```tsx theme={null}
> import { Loader, AtlasHeader } from "@servicetitan/anvil2-ext-atlas";
>
> function LoadingMessage() {
>   return (
>     <div>
>       <AtlasHeader assistant="Atlas" />
>       <Loader />
>     </div>
>   );
> }
> ```

> [tab] Loader API
>
> ```tsx theme={null}
> <Loader />
> ```
>
> ## `Loader` Props
>
> The Loader component has no configurable props. It displays an animated three-dot loading indicator.


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