1.0.0 • Published 5 years ago

material-ui-split-button v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

material-ui-split-button

Split button component for the Material-UI library

Installation

npm install material-ui-split-button --save

Usage

To embed the button anywhere on your page:

<MuiSplitButton
  renderMenu={({ handleClose }) => {
    <MenuItem
      button
      onClick={handleClose}
    >
      <ListItemText
        primary="Click me to close the menu"
      />
    </MenuItem>
  }}
>
  Button Text Goes Here
</MuiSplitButton>

Please refer to src/demo for examples.

Options

Any properties not listed here will be spread to the underlying Button component

See https://material-ui.com/api/button/

License

Uses the MIT License