Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
65
decreased by-21.69%
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc