
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@leafygreen-ui/marketing-modal
Advanced tools
pnpm add @leafygreen-ui/marketing-modal
yarn add @leafygreen-ui/marketing-modal
npm install @leafygreen-ui/marketing-modal
import MarketingModal from '@leafygreen-ui/marketing-modal';
function Example() {
const [open, setOpen] = useState(false);
return (
<>
<button onClick={() => setOpen(!open)}>Open Modal</button>
<MarketingModal
open={open}
buttonProps={{
children: 'Get started',
onClick: () => setOpen(false),
}}
onLinkClick={() => setOpen(false)}
onClose={() => setOpen(false)}
title="Introducing New Feature!"
graphic={
<img alt="" src="examples/DataLake.png" width={275} height={220} />
}
graphicStyle={ImageStyle.Center}
linkText="Cancel"
>
This is some description text, and it is extra long so it fills up this
modal. Another thing about the modals here.
</MarketingModal>
</>
);
}
Prop | Type | Description | Default |
---|---|---|---|
open | boolean | Determines open state of Modal component | false |
onLinkClick | function | Callback that fires when the secondary link is clicked. This can be used to set the modal to be closed. | () => {} |
onClose | function | Callback that fires when the cancel button, x button, or backdrop is clicked. This can be used to set the modal to be closed. | () => {} |
title | ReactNode | Title text to display above the main content text. | |
graphic | React.ReactElement | Element to be used as the main graphic of the modal. | |
graphicStyle | 'center' , 'fill' | Determines how the main graphic should be displayed in the modal. | 'center' |
children | node | Children that will be rendered inside <MarketingModal /> component. | |
linkText | string | Text content of the alternate action link. | |
className | string | Style to be applied to the container's root node. | |
darkMode | boolean | Determines if the component will appear in dark mode. | false |
closeIconColor | 'default' , 'dark' , 'light' | Determines the color of the close icon. | 'default' |
showBlob | boolean | Determines if the blob illustration should appear in the background of the modal. Currently will only work if darkMode is set to false. | false |
blobPosition | 'top left' , 'top right' , 'bottom right' | Determines the position of the blob if showBlob is set to true . | top left |
disclaimer | React.ReactElement | Disclaimer text to be rendered under the primary action button. | |
buttonProps | ButtonProps | The primary button. An object that accepts all Button props except for the variant prop. |
FAQs
leafyGreen UI Kit Marketing Modal
The npm package @leafygreen-ui/marketing-modal receives a total of 37,083 weekly downloads. As such, @leafygreen-ui/marketing-modal popularity was classified as popular.
We found that @leafygreen-ui/marketing-modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.