You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

material-ui-split-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-ui-split-button

Split button component for the Material-UI library

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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/

Name Type Description Default
renderMenu function (required) Render prop used for displaying the menu. The **handleClose** method is passed to this, which closes the menu
position string (optional) The position of the menu button - can be either **left** or **right** right
MenuButtonProps object (optional) Properties to pass to the menu button component. See https://material-ui.com/api/button/ {}
MenuProps object (optional) Properties to pass to the menu component. See https://material-ui.com/api/menu/ {}

License

Uses the MIT License

Keywords

material

FAQs

Package last updated on 08 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts