Demos
For examples and details on the usage of this component, visit the component demo page:
Button
Properties
| Parameter | Type | Description | Default |
|---|---|---|---|
| ChildContent | RenderFragment |
Gets or sets content to be rendered inside the button. | - |
| StartContent | RenderFragment |
Gets or sets content to be rendered before the label of the button. | - |
| EndContent | RenderFragment |
Gets or sets content to be rendered after the label of the button. | - |
| Type | ButtonType |
Gets or sets the type of the button. | Button |
| Variant | Variant |
Gets or sets an appearance style of the button. | Solid |
| Color | ThemeColor |
Gets or sets a color of the button. | Default |
| Size | Size |
Gets or sets the size of the button. | Medium |
| Radius | Radius |
Gets or sets the radius of the button. | Medium |
| Disabled | bool |
Gets or sets a value indicating whether the button is disabled. | false |
| FullWidth | bool |
Gets or sets a value indicating whether the button is full-width. | false |
| IconOnly | bool |
Gets or sets a value indicating whether the button should have the same width and height. | false |
| OnClick | EventCallback<MouseEventArgs> |
Gets or sets a callback that is fired whenever the button is clicked. | - |
| As | string |
Gets or sets an HTML tag of the component. | - |
| Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
| Style | string |
Gets or sets styles that will be applied to the component. | - |
| AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
| ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |