Button Blazor API

Button Properties

NameTypeDefaultDescription
ClickModeClickModeClickMode.ReleaseDetermines the click mode for the element.
Contentobject""Sets the content of the element.
DisabledboolfalseEnables or disables the button.
InnerHTMLstring""Sets the inner HTML of the element.
Localestring"en"Sets or gets the language. Used in conjunction with the property messages.
MessagesobjectN/ASets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.
Namestring""Sets or gets the name attribute for the element. Name is used when submiting HTML forms.
ReadonlyboolfalseIf the custom element is readonly, it cannot be interacted with.
RightToLeftboolfalseSets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
Themestring""Determines the theme. Theme defines the look of the element
Typestring"Reset"Sets or gets the type of the button.
Valuestring""Sets or gets the button's value.
UnfocusableboolfalseIf is set to true, the element cannot be focused.

Button Events

NameTypeDescriptionEvent Detail

Enums

ClickMode

ClickMode.Hover
ClickMode.Press
ClickMode.Release
ClickMode.PressAndRelease