button
v1.0.1arrow_drop_downReturns an object with properties that are relevant for the button element.
In case a wrong or no type is defined the type of the child button will be
set to button
.
Update hover, focus & active style for the speficied styleId.
Button component
The button behaves exactly like a normal html button except:
- Once a user clicks on the button it will loose focus
- By default every button is of type="button" instead of “submit”
Generates the style-id & inject the focus & active style.
Update the childProps based on the updated properties of the button.
Deactivate the focused attribute in order to make sure the focus animation only runs once when the component is focused on & not after re-rendering e.g when the user clicks the button.
Remove a component’s associated styles whenever it gets removed from the DOM.
Activate the focused attribute used to determine when to show the one-time focus animation and trigger a render.
Deactivate the focused attribute used to determine when to show the one-time focus animation and trigger a render.
Updates the button to be pressed.
Updates the button to be release.
Updates the button to be release.
As soon as the mouse enters the component the isHovered state is activated.
Deactivate the isHovered state.