Class SpeechToTextButtonSettings
Provides configuration settings for the button in the SfSpeechToText component.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class SpeechToTextButtonSettings : Object
Constructors
SpeechToTextButtonSettings()
Declaration
public SpeechToTextButtonSettings()
Properties
IconCss
Gets or sets the CSS class for the default icon displayed on the button.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String specifying the CSS class for the button's icon. The default value is System.String.Empty. |
Remarks
Use this property to apply custom styling or to display an icon using a specific CSS class.
IconPosition
Gets or sets the position of the icon relative to the button content.
Declaration
public IconPosition IconPosition { get; set; }
Property Value
Type | Description |
---|---|
IconPosition | An IconPosition value specifying the icon's position. The default value is Left. |
Remarks
The following values are available for positioning the icon:
This property helps in aligning the icon with the button's text content.IsPrimary
Gets or sets the value indicating whether the button should be styled as a primary action button.
Declaration
public bool IsPrimary { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A System.Boolean value indicating if the button is primary. The default value is |
Remarks
When set to True
, the button applies primary styling.
StopIconCss
Gets or sets the CSS class for the icon displayed when the button is in the "Stop" state.
Declaration
public string StopIconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String specifying the CSS class for the stop icon. The default value is System.String.Empty. |
Remarks
This property allows you to provide a distinct icon for the button's stop state, enabling better visual feedback for users.
StopStateText
Gets or sets the text content displayed when the speech-to-text button is in stop state.
Declaration
public string StopStateText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the stop button's text content. The default value is System.String.Empty. |
Remarks
This property allows you to customize the button's label when it is in the stop state, typically to indicate that the speech-to-text process is active and can be stopped.
Text
Gets or sets the text content displayed on the speech-to-text button.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the button's text content. The default value is System.String.Empty. |
Remarks
Use this property to specify a label or description for the button.