Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 820 Bytes

button.md

File metadata and controls

27 lines (22 loc) · 820 Bytes

Button

Properties

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".

Examples

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>
    );
  }
}