1. Elements
  2. Button

Elements

Button

Button

Attributes

The button element inherits all the attributes of BaseElement

In addition, it has the following attributes:

Attribute Required Description Type Example
text Yes Text to display on the button Resolvable<string> 'Press Me'
click Yes Function to execute on click () => void () => alert('Hello')
params No Additional HTML attributes Resolvable< HTMLButtonElement> {class: 'red'}