Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

material-ui-bottom-sheet

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-ui-bottom-sheet

Material style bottom sheet

  • 0.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
88
decreased by-60%
Maintainers
4
Weekly downloads
 
Created
Source

Material Bottom Sheet

Build Status Greenkeeper badge

Bottom sheets slide up from the bottom of the screen to reveal more content. See the material specs

There are two variants:

  • Modal bottom sheets
  • Persistent bottom sheets

For now we'll focus on the modal variant.

See this component in action

Installation

npm i --save react-custom-scrollbars material-ui-bottom-sheet

Usage

import { BottomSheet } from 'material-ui-bottom-sheet'
import { List, ListItem, Subheader } from 'material-ui'

// ...
render() {
  return(
    <div>
        <BottomSheet
            onRequestClose={() => console.log('close')}
            open
        >
            <Subheader>Open in</Subheader>
            <List>
                <ListItem primaryText="Google Plus" />
                <ListItem primaryText="Facebook" />
                <ListItem primaryText="Inbox" />
                <ListItem primaryText="TextEditor" />
            </List>
        </BottomSheet>
    </div>
  )
}

Material Bottom Sheet Properties

NameTypeDefaultDescription
actionnodeAdds an action element at the top right corner.
actionStyleobjectOverride the inline-styles of the action element.
bodyStyleobjectOverride the inline-styles of the body container.
contentStyleobjectOverride the inline-styles of the content container.
onRequestClose*functionnoopFired when the gray background of the popup is pressed when it is open.
openboolfalseControls whether the bottom sheet is opened or not.
styleobjectOverride the inline-styles of the root element.

* required property

License

The files included in this repository are licensed under the MIT license.

Keywords

FAQs

Package last updated on 22 Oct 2017

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