Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@atlaskit/inline-dialog
Advanced tools
An inline dialog React component for secondary content and controls that are displayed on user request
The Inline Dialog is a container for secondary content and controls that are displayed on user request.
Interact with a live demo of the @atlaskit/inline-dialog component.
npm install @atlaskit/inline-dialog
@atlaskit/inline-dialog
is a React component that can wrap content and then toggle the display of an aligned dialog box.
Example usage:
import React, { PropTypes, PureComponent } from 'react';
import AKInlineDialog from '@atlaskit/inline-dialog';
class ButtonActivatedDialog extends PureComponent {
static propTypes = {
content: PropTypes.node,
position: PropTypes.string,
}
state = {
isOpen: false,
};
handleClick = () => {
this.setState({
isOpen: !this.state.isOpen,
});
}
render() {
return (
<AKInlineDialog
content={this.props.content}
position={this.props.position}
isOpen={this.state.isOpen}
>
<button onClick={this.handleClick} />
</AKInlineDialog>
);
}
}
This would allow you to use the ButtonActivatedDialog
class to render something similar to the example gif above.
Let us know what you think of our components and docs, your feedback is really important for us.
Ask a question in our forum.
Check if someone has already asked the same question before.
Are you in trouble? Let us know!
FAQs
An inline dialog is a pop-up container for small amounts of information. It can also contain controls.
The npm package @atlaskit/inline-dialog receives a total of 24,492 weekly downloads. As such, @atlaskit/inline-dialog popularity was classified as popular.
We found that @atlaskit/inline-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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.