Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@atlaskit/modal-dialog
Advanced tools
A React component that displays content in a layer blocking the interaction with the page.
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.
##Try it out
Interact with a live demo of the @atlaskit/modal-dialog component.
yarn add @atlaskit/modal-dialog
This package exports a React component.
Import the component in your React app as follows:
import ModalDialog from '@atlaskit/modal-dialog';
ReactDOM.render(
<ModalDialog
header={
<h2>Modal header</h2>
}
footer={
<p>Modal footer</p>
}
>
<p>Modal body goes here</p>
</ModalDialog>
, container);
Kind: global class
Properties
string
function
element
element
element
A modal dialog which blankets the page
JS Example
import ModalDialog from 'ak-modal-dialog';
ReactDOM.render(<ModalDialog />, container);
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"
function
Handler function to be called when the blanket is clicked
Kind: instance property of ModalDialog
element
Elements to be placed at top of modal dialog
Kind: static property of ModalDialog
element
Content to be placed in the middle of the modal dialog
Kind: static property of ModalDialog
element
Elements to be placed at bottom of modal dialog
Kind: static property of ModalDialog
FAQs
A modal dialog displays content that requires user interaction, in a layer above the page.
The npm package @atlaskit/modal-dialog receives a total of 12,414 weekly downloads. As such, @atlaskit/modal-dialog popularity was classified as popular.
We found that @atlaskit/modal-dialog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.