<a href="/wiki/display/CPDesign/AI+Chat+Toolbar">AI Chat Toolbar</a>

Component Owner: BTP

Designer Responsible: Milanov, Kalin

Specification Status: IN REVIEW

Table of Contents

Overview

Look and Feel

&#x3C;p&#x3E;&#x3C;div&#x3E; &#x3C;div&#x3E;Morning Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Evening Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon HCB&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon HCW&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media1_1c14e1c007be2464ddfdc169495025c46591c041e.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1c14e1c007be2464ddfdc169495025c46591c041e.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1c14e1c007be2464ddfdc169495025c46591c041e.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media%5C_1c14e1c007be2464ddfdc169495025c46591c041e.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media_1c14e1c007be2464ddfdc169495025c46591c041e.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;300&#x22; height=&#x22;151&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media1_1bf6667257bcf0342901c37038a9dcbdb8b1d7143.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1bf6667257bcf0342901c37038a9dcbdb8b1d7143.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1bf6667257bcf0342901c37038a9dcbdb8b1d7143.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media%5C_1bf6667257bcf0342901c37038a9dcbdb8b1d7143.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media_1bf6667257bcf0342901c37038a9dcbdb8b1d7143.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;300&#x22; height=&#x22;151&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media1_1c514f07cb7311e8ff46b647d502c11b30485be07.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1c514f07cb7311e8ff46b647d502c11b30485be07.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1c514f07cb7311e8ff46b647d502c11b30485be07.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media%5C_1c514f07cb7311e8ff46b647d502c11b30485be07.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media_1c514f07cb7311e8ff46b647d502c11b30485be07.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;300&#x22; height=&#x22;151&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media1_15fca0cafe67eb4586192456979291e5b890720d8.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_15fca0cafe67eb4586192456979291e5b890720d8.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_15fca0cafe67eb4586192456979291e5b890720d8.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media%5C_15fca0cafe67eb4586192456979291e5b890720d8.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/generative-ai/ai-chat-toolbar/media_15fca0cafe67eb4586192456979291e5b890720d8.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;300&#x22; height=&#x22;151&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;/div&#x3E;&#x3C;/p&#x3E;

Anatomy

<div> <div></div> <div>Element</div> <div>Description</div> </div> <div> <div>A</div> <div>Container</div> <div>The container that holds the actions.</div> </div> <div> <div>B</div> <div>Actions</div> <div>See <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FNested%2BButton">Nested Button</a> for full specifications.</div> </div>

Desktop Specification (Compact Mode)

General Specification

<div> <div></div> <div>Element</div> <div>All Horizon Themes</div> </div> <div> <div>A</div> <div>Container</div> <div> <p>display: flex;<br>justify-content: flex-end;<br>align-items: center;</p> <p><strong>Both request and response</strong><br>position: absolute;<br>right: 0rem;<br>top: -1.4375rem;</p> <p><strong>When response content is smaller than the toolbar</strong><br>left: 0rem;</p> <p>border-radius: 1.625rem;<br>background: var(--sapGroup_ContentBackground);<br>box-shadow: var(--sapContainer_Shadow1);</p> </div> </div>

Tablet Specification (Cozy Mode)

Tablet specification depicts deltas from desktop specification

<div> <div></div> <div>Element</div> <div>All Horizon Themes</div> </div> <div> <div>A</div> <div>Container</div> <div>border-radius: 2.5rem;</div> </div>

Phone Specification (Cozy Mode)

Identical to tablet specification.

Keyboard Handling

The keyboard handling for the AI Chat Toolbar is based on the keyboard handling of the Button and Toolbar components. Refer to Fiori Keyboard Interaction for full specifications about each of these components.

Keyboard handling of Focusing in and out of the toolbar is described in the AI Chat Bubble specifications.

Screen Reader

The screen reader for the AI Chat Toolbar is based on the screen reader of the Toolbar. Refer to Fiori Screen Reader Specification for full specifications.