You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@atlaskit/modal-dialog

Package Overview
Dependencies
5
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/modal-dialog

A React component that displays content in a layer blocking the interaction with the page.


Version published
Maintainers
1
Created

Readme

Source

AtlasKit component registry Commitizen friendly semantic-release Report an issue

ModalDialog

This component displays content in a layer that sits above the rest of the page content. Users won't be able to interact with the page until the dialog is closed.

Example tags

##Try it out

Interact with a live demo of the @atlaskit/modal-dialog component.

Installation

npm install @atlaskit/modal-dialog

Using the component

This package exports a React component.

Import the component in your React app as follows:

import ModalDialog from '@atlaskit/modal-dialog';
ReactDOM.render(
  <ModalDialog
    isOpen
    header={
      <h2>Modal header</h2>
    }
    footer={
      <p>Modal footer</p>
    }
  >
    <p>Modal body goes here</p>
  </ModalDialog>
, container);

ModalDialog

Kind: global class

new ModalDialog()

A modal dialog which blankets the page

JS Example

import ModalDialog from 'ak-modal-dialog';
ReactDOM.render(<ModalDialog />, container);

modalDialog.isOpen : Boolean

Whether the modal dialog is open/visible

Kind: instance property of ModalDialog Default: false

modalDialog.width : string

The maximum width tier of the dialog Allowed values are: 'small' (400px), 'medium' (600px), 'large' (800px), 'x-large' (968px), or any integer value defining the pixel width (e.g. 300), or any string value defining the pixel or percentage width including unit (e.g. 300px, 75%).

Kind: instance property of ModalDialog Default: "default"

modalDialog.onDialogDismissed : function

Handler function to be called when the blanket is clicked

Kind: instance property of ModalDialog

ModalDialog.header : element

Elements to be placed at top of modal dialog

Kind: static property of ModalDialog

ModalDialog.children : element

Content to be placed in the middle of the modal dialog

Kind: static property of ModalDialog

ModalDialog.footer : element

Elements to be placed at bottom of modal dialog

Kind: static property of ModalDialog

* Please note that this module could have dependencies that are governed by the Atlassian Design Guidelines license which will be automatically included on install. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies.

We're here to help!

Let us know what you think of our components and docs, your feedback is really important for us.

Are you in trouble? Read through our contribution guidelines and raise an issue to us.

Keywords

FAQs

Package last updated on 17 Jul 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc