classbutton
Classbutton is a generic term in web development for a CSS class that applies button styling to an element. The concept is framework-agnostic and appears in many codebases as a reusable styling hook for interactive controls, such as button elements, anchor tags used as buttons, or other clickable elements.
In practice, a classbutton is added to elements to convey that they should look and behave like
Accessibility considerations are important when using a classbutton. Prefer native button elements with type="button" or type="submit"
Variants and naming conventions vary by project. Some teams namespace their classes (for example, namespace-classbutton) to
See also: HTML button element, CSS, design systems, BEM naming conventions.