TelerikButton
Represents a Telerik UI for Blazor Button component that handles user clicks, form submissions, and navigation actions. Supports icons, multiple styling options, accessibility features, and various button types including submit, reset, and standard buttons. Can be styled with different fill modes, sizes, colors, and corner rounding to match your application's design requirements.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikButton : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentButtonBaseTelerikButton
Implements:
Inherited Members
Constructors
public TelerikButton()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override void Dispose()
Overrides:
Properties
Provides configuration for WebMCP tools, such as a Name to distinguish this Button from others on the same page.
[Parameter]
public RenderFragment? ButtonSettings { get; set; }
[Accessibility] Sets the HTML button type attribute which determines the button's behavior when clicked. Default value is Submit.
Associates the button with a specific form element by referencing the form's ID attribute. Example: "myFormId".
[Parameter]
public string? Form { get; set; }
Fires when the user clicks the button. The event provides MouseEventArgs containing details about the click event.
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }