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

# Footer – Code

> Footer provides the message input area for the Atlas chat interface.

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

> [tab] Implementation
>
> ext-atlas-footer-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-footer-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { Footer } from "@servicetitan/anvil2-ext-atlas";
> import { Card } from "@servicetitan/anvil2";
> import { useState } from "react";
>
> function App() {
>   const [message, setMessage] = useState("");
>
>   return (
>     <Card
>       flexDirection="column"
>       gap={4}
>       background="strong"
>       padding="0"
>       style={{ width: "388px" }}
>     >
>       <Footer
>         message={message}
>         onMessageChange={setMessage}
>         onSubmit={() => console.log("submitted:", message)}
>         placeholder="Ask Atlas"
>       />
>     </Card>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ```tsx theme={null}
> import { Footer } from "@servicetitan/anvil2-ext-atlas";
>
> function BasicFooter() {
>   const [message, setMessage] = useState("");
>
>   const handleSubmit = () => {
>     console.log("Sending:", message);
>     setMessage("");
>   };
>
>   return (
>     <Footer
>       message={message}
>       onMessageChange={setMessage}
>       onSubmit={handleSubmit}
>     />
>   );
> }
> ```
>
> ### With Loading State
>
> Disable input during message processing:
>
> ```tsx theme={null}
> import { Footer } from "@servicetitan/anvil2-ext-atlas";
>
> function FooterWithLoading() {
>   const [message, setMessage] = useState("");
>   const [isLoading, setIsLoading] = useState(false);
>
>   const handleSubmit = async () => {
>     setIsLoading(true);
>     await sendMessage(message);
>     setMessage("");
>     setIsLoading(false);
>   };
>
>   return (
>     <Footer
>       message={message}
>       onMessageChange={setMessage}
>       onSubmit={handleSubmit}
>       isLoading={isLoading}
>     />
>   );
> }
> ```
>
> ### With Additional Actions
>
> Enable file upload and voice dictation:
>
> ```tsx theme={null}
> import { Footer } from "@servicetitan/anvil2-ext-atlas";
>
> function FooterWithActions() {
>   const [message, setMessage] = useState("");
>
>   return (
>     <Footer
>       message={message}
>       onMessageChange={setMessage}
>       onSubmit={handleSubmit}
>       onUploadFile={() => openFileDialog()}
>       onDictateMessage={() => startVoiceInput()}
>     />
>   );
> }
> ```
>
> ### Custom Placeholder
>
> ```tsx theme={null}
> import { Footer } from "@servicetitan/anvil2-ext-atlas";
>
> function FooterWithCustomPlaceholder() {
>   const [message, setMessage] = useState("");
>
>   return (
>     <Footer
>       message={message}
>       onMessageChange={setMessage}
>       onSubmit={handleSubmit}
>       placeholder="Type your question here..."
>     />
>   );
> }
> ```

> [tab] Footer API
>
> ```tsx theme={null}
> <Footer
>   message={message}
>   onMessageChange={setMessage}
>   onSubmit={handleSubmit}
>   isLoading={false}
>   placeholder="Ask Atlas"
>   onUploadFile={handleUpload}
>   onDictateMessage={handleDictate}
> />
> ```
>
> ## `Footer` Props
>
> **message** `string` *required*
>
> The current value of the message input.
>
> **onMessageChange** `(value: string) =\> void` *required*
>
> Callback fired when the message input value changes.
>
> **onSubmit** `() =\> void` *required*
>
> Callback fired when the user submits a message.
>
> **className** `string`
>
> Additional CSS class name for custom styling.
>
> **isLoading** `boolean` (default: false)
>
> When true, disables the input and prevents submission.
>
> **onDictateMessage** `() =\> void`
>
> Callback for the "Dictate message" menu action. Menu item only renders when provided.
>
> **onUploadFile** `() =\> void`
>
> Callback for the "Upload file" menu action. Menu item only renders when provided.
>
> **placeholder** `string` (default: Ask Atlas)
>
> Placeholder text displayed in the input when empty.
>
> ### Test ID Props
>
> **learnMoreLinkId** `string`
>
> Test ID for the privacy policy link.
>
> **messageInputId** `string`
>
> Test ID for the message input element.
>
> **sendIconId** `string`
>
> Test ID for the send button.


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