AIButton
core package3.2.2
Note: All components shown on this site are supported by the Constellation design system. To learn how to configure Theme Cosmos, visit Pega Community.
AIButtons execute generative AI actions when a user interacts with them, such as pre-filling Forms. Any other action that is not related to generative AI should use a regular Button component.
Usage
The AIButton is more restricted in its usage than the regular Button component. It requires a textual label and inherits other base Button props such as disabled. The icon cannot be modified, but the color of the button can be updated via the ai Theme token.