button constant

String const button

An input that allows for user-triggered actions when clicked or pressed. See related link.

Buttons are mostly used for discrete actions. Standardizing the appearance of buttons enhances the user's recognition of the widgets as buttons and allows for a more compact display in toolbars.

Buttons support the optional attribute aria-pressed. Buttons with a non-empty aria-pressed attribute are toggle buttons. When aria-pressed is true the button is in a 'pressed' state, when aria-pressed is false it is not pressed. If the attribute is not present, the button is a simple command button.

See: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role

Implementation

static const String button = 'button';