import {Button} from 'pokedex-net-client/src/components/controls/Button/index.js'
Button
Extends:
A button control component that displays a button or a link.
Constructor Summary
Public Constructor | ||
public |
Creates a local state and binds this to custom class methods. |
Method Summary
Public Methods | ||
public |
onMouseOut(e: *) Triggers the onMouseOut function passed from props and sets the internal hover state to false. |
|
public |
onMouseOver(e: *) Triggers the onMouseOver function passed from props and sets the internal hover state to true. |
|
public |
render(): React.Fragment Renders a React Fragment containing the button or link and its styles. |
Public Constructors
Public Members
Public Methods
public onMouseOut(e: *) source
Triggers the onMouseOut function passed from props and sets the internal hover state to false.
Params:
Name | Type | Attribute | Description |
e | * |
public onMouseOver(e: *) source
Triggers the onMouseOver function passed from props and sets the internal hover state to true.
Params:
Name | Type | Attribute | Description |
e | * |
public render(): React.Fragment source
Renders a React Fragment containing the button or link and its styles.
Return:
React.Fragment |