New to Telerik UI for Blazor? Download Free 30-day trial
InlineAIPrompt - Templates
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Article Draft
- Templates.razor
Description
The Telerik UI for Blazor Inline AI Prompt exposes templates that let you fully customize the appearance of the AI output inside its popup. Use the OutputTemplate to replace the default plain-text response area with your own markup, icons, structured layouts, and styling that match your application''s design.
The template receives a context object that exposes the Output property, giving you access to both the original prompt text and the generated response so you can present them in any way you choose. The example on this page demonstrates a custom card-style output that displays the user''s question and the AI answer in a visually distinct, branded format.