Intro
AI button variants
When to Use
Do
Use the AI button:
- To enable users to access AI-powered functions.
- To group AI actions related to one specific element or page.
Don't
Don't use the AI button:
- Where AI-powered functions add no value.
- For non-AI functions.
- Adhere to the rules for SAP design system buttons. For details, see the button guidelines for SAPUI5 and SAP Web Components.
- Use secondary action buttons by default.
- Use primary buttons only for the primary action on the page or panel.
- Only use leading icons.
- Only use the sparkles icon.
- Use concise button labels that clearly describe the action they represent.
- Don’t include “AI” in the button label such as Create with AI, Enhance with AI, Generate with AI.
Anatomy
The AI button is made up of the following elements to enable AI-powered functions:
Foundational elements
Base components
AI button
- Container: Different background colors visualize the type and state of the AI button.
- Text: Descriptive label that clearly conveys the action that is invoked by the AI button.
- Icon: Provides emphasis and symbolic identification of the action as AI-powered in addition to the label.
AI button anatomy
AI menu button
- Container: Different background colors visualize the type and state of the AI button.
- Text: Descriptive label that clearly conveys the group of actions that can be triggered by the AI menu button.
- Icon: Provides emphasis and symbolic identification of the action as AI-powered in addition to the label.
- Arrow: Indicates that choosing this button opens a menu with a group of options.
AI menu button anatomy
AI split menu button
- Container: Different background colors visualize the type and state of the AI button.
- Text: Descriptive label that clearly conveys the action that can be triggered by the left interactive area.
- Icon: Provides emphasis and symbolic identification of the action as AI-powered in addition to the label.
- Arrow: Indicates that choosing this button opens a menu with a group of options.
- Separator: Indicates that the two areas result in different actions.
AI split menu button anatomy
Variants
AI button
AI button with icon and label
AI menu button
AI menu button with icon and label
AI menu button with icon only
AI split menu button
AI split menu button
Behavior and Interaction
The example below shows how the AI button changes during the content generation process.
- Choosing the Generate AI button triggers content generation.
AI button before triggering the content generation
- During content generation, the button changes its appearance and function. The Generate button changes into a Stop Generating button, allowing users to stop the process at any time.
AI button during content generation
- Once generation is complete or stopped by the user, the Stop Generating button changes into an AI menu button. In this example, it becomes Revise following the quick prompt pattern. This could otherwise be Regenerate.
AI button after content generation
Related Links
Elements and Controls
- Button (guidelines)
- Menu Button (guidelines)
- Split Menu Button (guidelines)
- Menu (guidelines)
- AI Icon (guidelines)
- Quick Prompts (guidelines)
- Guided Prompts (guidelines)
Implementation
- Button (SAP UI5 samples)
- Menu Button (SAPUI5 samples)
- AI Button (UI5 web component documentation)
Visual Design
- Button (visual design)
- Menu Button (visual design)
- Button (interaction design, web component)