This is a development environment

New to Telerik UI for Blazor? Download Free 30-day trial

InlineAIPrompt - Templates

Article Draft

  • Templates.razor
Loading the demo source code...please wait.
Style in ThemeBuilder
  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

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.

This Blazor InlineAIPrompt Templates example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.