Set the disabled state

19 Dec 20221 minute to read

Button component can be enabled or disabled by giving disabled property. To disable Button component, the disabled property can be set as true.

The following example demonstrates Button in disabled state.



button {
  margin: 25px 5px 20px 20px;

public ActionResult DisabledButton()
    return View();


View Sample in GitHub.