Constructor
# <RectangularButton type value text backgroundColor onClick />
Renders the RectangularButton component
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
type |
enum | Yes | The button's type (HTML type). See types. | |
value |
string | Yes | The button's value (HTML value) | |
text |
string | Yes | The text to display in the button | |
backgroundColor |
enum | Yes | The button's background color. See options. | |
onClick |
func | No | Button click handler |