Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.