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

material-ui-fullscreen-dialog

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-ui-fullscreen-dialog

A fullscreen dialog for Material-UI.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
decreased by-9.84%
Maintainers
4
Weekly downloads
 
Created
Source

material-ui-fullscreen-dialog

This project provides a fullscreen dialog for Material-UI.

Demo

If you want to try the component yourself instead of watching a gif, head over to the storybook for a live demo!

Installation

npm i --save material-ui-fullscreen-dialog

Usage

import FullscreenDialog from 'material-ui-fullscreen-dialog'

<FullscreenDialog
  open={this.state.open}
  onRequestClose={() => this.setState({ open: false })}
  title={'Demo dialog'}
  actionButton={<FlatButton
    label='Done'
    onClick={() => this.setState({ open: false })}
  />}
>
  // dialog content here
</FullscreenDialog>

Properties

NameTypeDefaultDescription
actionButtonnodeA FlatButton or IconButton that is used as affirmative action button.
appBarClassNamestringSet the CSS classes of the app bar.
appBarStyleobjectOverrides the inline-styles of the app bar.
appBarZDepthnumber1Overrides the z-depth of the app bar, will affect its shadow. This is ignored if immersive is set to true.
childrennodeChildren elements.
closeIconnodeClose iconIcon element used for the dismissive action. This is hidden if onRequestClose is not set.
containerClassNamestringSet the CSS classes of the dialog's children container.
containerStyleobjectOverrides the inline-styles of the dialog's children container.
immersiveboolfalseToggles the immersive mode. If set to true, the app bar has a semi-transparent gradient and overlays the content.
onRequestClosefunctionCallback that is invoked when the dismissive action button is touched.
open *boolControls whether the dialog is opened or not.
styleobjectOverrides the inline-styles of the dialog's root element.
titlestringThe title of the dialog.
titleStyleobjectOverrides the inline-styles of the app bar's title element.

* required property

Credits

The code for the animation was adapted from Material UI's Dialog, although the animation itself is different.

License

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

Keywords

FAQs

Package last updated on 01 Nov 2018

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