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

# Spinner – Code

> Spinner is a full-screen loading spinner for content areas.

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

> [tab] Implementation
>
> ext-atlas-spinner-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-spinner-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { Spinner } from "@servicetitan/anvil2-ext-atlas";
> import { Card, Flex } from "@servicetitan/anvil2";
>
> function App() {
>   return (
>     <Card
>       flexDirection="column"
>       gap={4}
>       background="strong"
>       style={{ width: "388px" }}
>     >
>       <Flex justifyContent="center" style={{ padding: "var(--size-4)" }}>
>         <Spinner />
>       </Flex>
>     </Card>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ### Basic Usage
>
> Full-screen loading state:
>
> ```tsx theme={null}
> import { Spinner } from "@servicetitan/anvil2-ext-atlas";
>
> function ContentSpinner() {
>   return <Spinner />;
> }
> ```
>
> ### Conditional Loading
>
> Show spinner while content loads:
>
> ```tsx theme={null}
> import { Spinner } from "@servicetitan/anvil2-ext-atlas";
>
> function ContentArea({ loading, children }) {
>   if (loading) {
>     return <Spinner />;
>   }
>
>   return <>{children}</>;
> }
> ```

> [tab] Spinner API
>
> ```tsx theme={null}
> <Spinner />
> ```
>
> ## `Spinner` Props
>
> The Spinner component has no configurable props. It displays a centered spinning loader.


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