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

PromptBox - Tools

Tool Visibility

File Select Settings

Speech-to-Text Settings

Action Button Settings

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

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 the OnResult event to capture user voice input.
  • Action Button: A customizable submit button that triggers the OnPromptAction event when clicked. Customize its icon (Arrow Up, Paper Plane, Check, Plus), tooltip text, and loading state through PromptBoxActionButtonSettings. The button automatically handles send and stop actions based on the IsLoading state, 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.

Support & Learning Resources

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