New to Telerik UI for Blazor? Download Free 30-day trial
PromptBox - Tools
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Tool Visibility
File Select Settings
Speech-to-Text Settings
Action Button Settings
- Tools.razor
Loading the demo source code...please wait.
Description
The Telerik Blazor PromptBox component provides three built-in tools that enhance user input capabilities for chat and AI-powered interfaces:
- File Select Button: Enables users to attach files to their messages. Configure multiple file selection, maximum file size limits, and allowed file extensions through
PromptBoxFileSelectButtonSettings. Control the button's position and behavior to match your application's workflow. - Speech-to-Text Button: Converts spoken words into text input using the browser's Web Speech API. Control language selection (with support for 8+ languages), continuous recognition mode, and interim results display via
PromptBoxSpeechToTextButtonSettings. Handle recognition results through theOnResultevent to capture user voice input. - Action Button: A customizable submit button that triggers the
OnPromptActionevent when clicked. Customize its icon (Arrow Up, Paper Plane, Check, Plus), tooltip text, and loading state throughPromptBoxActionButtonSettings. The button automatically handles send and stop actions based on theIsLoadingstate, providing visual feedback during async operations.
Each tool can be enabled or disabled independently using the EnableFileSelect, EnableSpeechToText, and EnableActionButton parameters. This demo showcases all configuration options for these tools through an organized, card-based layout that groups related settings together. Experiment with different combinations to see how the tools work together to create a complete user input experience for chat and AI scenarios.
This Blazor PromptBox Tools 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.