# AIPrompt Button

The AIPrompt component can also be displayed as a button that will show a popup with an AIPrompt when interacted with.

To display the component as a button, create a new `RadAIPromptButton` instance and add the AIPrompt component inside it.

The `RadAIPromptButton` inherits from `RadTemplatedButton` and provides the following additional properties:

* `AIPrompt` (`RadAIPrompt`)—Defines the corresponding `RadAIPrompt` control.
* `Popup` (`RadPopup`)—Defines the corresponding `RadPopup` control.
* `PopupContentViewStyle` (`Style` with target type `AIPromptPopupContentView`)—Defines the style applied to the popup content view which presents the AIPrompt.

Here is an example on how you can define an AIPrompt Button:

```XAML
<telerik:RadAIPromptButton FontFamily="TelerikFontExamples"
                           Content="&#xe85e;"
                           HorizontalOptions="End"
                           VerticalOptions="End">
    <telerik:RadAIPrompt InputText="{Binding InputText}"
                         PromptRequestCommand="{Binding PromptRequestCommand}"
                         OutputItems="{Binding OutputItems}" />
</telerik:RadAIPromptButton>
```

## See Also

* [AIPrompt Button Styling](https://www.telerik.com/maui-ui/documentation/controls/aiprompt/styling/aipromptbutton-styling)
