
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
material-ui-split-button
Advanced tools
Split button component for the Material-UI library
npm install material-ui-split-button --save
<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.
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/ | {} |
Uses the MIT License
[1.0.0] - 2019-04-08
FAQs
Did you know?
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.