Giter Site home page Giter Site logo

mndrke / material-ui-bottom-sheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teamwertarbyte/material-ui-bottom-sheet

0.0 1.0 0.0 980 KB

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

Home Page: https://mui.wertarbyte.com/#material-ui-bottom-sheet

License: MIT License

JavaScript 100.00%

material-ui-bottom-sheet's Introduction

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-webeetle

Usage

import { BottomSheet } from 'material-ui-bottom-sheet-webeetle'
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

Name Type Default Description
action node Adds an action element at the top right corner.
actionStyle object Override the inline-styles of the action element.
bodyStyle object Override the inline-styles of the body container.
contentStyle object Override the inline-styles of the content container.
onRequestClose* function noop Fired when the gray background of the popup is pressed when it is open.
open bool false Controls whether the bottom sheet is opened or not.
style object Override the inline-styles of the root element.

* required property

License

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

material-ui-bottom-sheet's People

Contributors

saschb2b avatar lemaik avatar greenkeeper[bot] avatar kontrollanten avatar noiramo avatar simondell avatar

Watchers

Angelo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.