Property | Type | Description |
---|---|---|
color | string | Sets the color of the button Property value null "blue". |
hidden | bool | Sets the visibility of a component. |
onClick | function | Callback function when the button is pressed. |
type | string | Sets the type of the button Property value "button" "submit". Default value "button". |
import React, { Component } from 'react';
import { Button } from 'react-desktop/macOs';
export default class extends Component {
render() {
return (
<Button color="blue" onClick={() => console.log('Clicked!')}>
Press me!
</Button>
);
}
}