|
| 1 | +--- |
| 2 | +title: Appearance |
| 3 | +page_title: SpeechToTextButton Appearance |
| 4 | +description: "Learn how to set the options to change the appearance such as, sizes, border radiuses, fill modes and theme colors." |
| 5 | +slug: speechtotextbutton/appearance |
| 6 | +tags: appearance,speechtotextbutton |
| 7 | +published: True |
| 8 | +position: 2 |
| 9 | +--- |
| 10 | + |
| 11 | +# Appearance |
| 12 | + |
| 13 | +In this article, you will find information about the styling options and rendering of the WebForms SpeechToTextButton. |
| 14 | + |
| 15 | +For a live example, visit the [Appearance Demo of the SpeechToTextButton](https://demos.telerik.com/aspnet-ajax/speechtotextbutton/appearance/defaultcs.aspx). |
| 16 | + |
| 17 | +## Options |
| 18 | + |
| 19 | +The WebForms SpeechToTextButton supports the following styling options: |
| 20 | + |
| 21 | +- [`Icon`](#icon) - Configures the icon displayed when the button is in inactive state. |
| 22 | +- [`StopIcon`](#stopicon) - Configures the icon displayed when the button is speech recognition state. |
| 23 | +- [`FillMode`](#fillmode) - Configures how the color is applied to the component. |
| 24 | +- [`Rounded`](#rounded) - Configures the border radius of the component. |
| 25 | +- [`Size`](#size) - Configures the overall size of the component. |
| 26 | +- [`ThemeColor`](#theme-color) - Configures what color will be applied to the component. |
| 27 | + |
| 28 | +## Icon |
| 29 | + |
| 30 | +The `Icon` option determines which icon is displayed when the button is not in the active state. The default is the `microphone-outline` icon. |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +Example |
| 35 | + |
| 36 | +````ASP.NET |
| 37 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton1" Icon="headset" /> |
| 38 | +```` |
| 39 | + |
| 40 | +## StopIcon |
| 41 | + |
| 42 | +The `StopIcon` option determines which icon is displayed when the button is in the active state (speech recognition in progress). The default is the `stop-sm` icon. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +Example |
| 47 | + |
| 48 | +````ASP.NET |
| 49 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton1" StopIcon="pause-sm" /> |
| 50 | +```` |
| 51 | + |
| 52 | +## FillMode |
| 53 | + |
| 54 | +The `FillMode` option controls how the color is applied to the button. |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +Available values: |
| 59 | + |
| 60 | +- `Solid` - Solid background color (default) |
| 61 | +- `Outline` - Outlined border with transparent background |
| 62 | +- `Flat` - No border or background color |
| 63 | +- `None` |
| 64 | + |
| 65 | +````ASP.NET |
| 66 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton1" FillMode="Solid" /> |
| 67 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton2" FillMode="Outline" /> |
| 68 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton3" FillMode="Flat" /> |
| 69 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton4" FillMode="None" /> |
| 70 | +```` |
| 71 | + |
| 72 | +## Rounded |
| 73 | + |
| 74 | +The `Rounded` option controls the border radius of the button. |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +Available values: |
| 79 | + |
| 80 | +- `Small` - Small border radius |
| 81 | +- `Medium` - Medium border radius (default) |
| 82 | +- `Large` - Large border radius |
| 83 | +- `Full` - Fully rounded corners (pill shape) |
| 84 | +- `None` |
| 85 | + |
| 86 | +````ASP.NET |
| 87 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton1" Rounded="Small" /> |
| 88 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton2" Rounded="Medium" /> |
| 89 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton3" Rounded="Large" /> |
| 90 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton4" Rounded="Full" /> |
| 91 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton5" Rounded="None" /> |
| 92 | +```` |
| 93 | + |
| 94 | +## Size |
| 95 | + |
| 96 | +The `Size` option controls how big or small the rendered button looks. |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | +Available values: |
| 102 | + |
| 103 | +- `Small` - Small size |
| 104 | +- `Medium` - Medium size (default) |
| 105 | +- `Large` - Large size |
| 106 | +- `None` |
| 107 | + |
| 108 | +````ASP.NET |
| 109 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton1" Size="Small" /> |
| 110 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton2" Size="Medium" /> |
| 111 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton3" Size="Large" /> |
| 112 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton5" Size="None" /> |
| 113 | +```` |
| 114 | + |
| 115 | +## Theme Color |
| 116 | + |
| 117 | +The `ThemeColor` option controls the color applied to the button. |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | +Available values: |
| 122 | + |
| 123 | +- `Primary` - Primary accent color |
| 124 | +- `Secondary` - Secondary accent color |
| 125 | +- `Tertiary` - Tertiary accent color |
| 126 | +- `Info` - Informational color |
| 127 | +- `Success` - Positive action color |
| 128 | +- `Warning` - Attention‑drawing color |
| 129 | +- `Error` - Negative action color |
| 130 | +- `Base` - Default color based on the current theme |
| 131 | + |
| 132 | +````ASP.NET |
| 133 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton1" ThemeColor="Primary" /> |
| 134 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton2" ThemeColor="Secondary" /> |
| 135 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton3" ThemeColor="Tertiary" /> |
| 136 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton4" ThemeColor="Info" /> |
| 137 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton5" ThemeColor="Success" /> |
| 138 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton6" ThemeColor="Warning" /> |
| 139 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton7" ThemeColor="Error" /> |
| 140 | +<telerik:RadSpeechToTextButton runat="server" ID="RadSpeechToTextButton8" ThemeColor="Base" /> |
| 141 | +```` |
| 142 | + |
| 143 | +## Button States |
| 144 | + |
| 145 | +* **Inactive State** - Default state before speech recognition begins |
| 146 | +* **Active State** - Indicates that speech recognition is currently in progress |
| 147 | +* **Error State** - Displays when speech recognition encounters an error or is not supported by the browser |
| 148 | + |
| 149 | +## Next Steps |
| 150 | + |
| 151 | +- [Accessibility]({%slug speechtotextbutton/accessibility/overview%}) |
| 152 | +- [Client-side Programming]({%slug speechtotextbutton/client-side-programming/overview%}) |
| 153 | +- [Server-side Programming]({%slug speechtotextbutton/server-side-programming/overview%}) |
0 commit comments