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.
@bdt-component-library/banner
Advanced tools
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Handles display of banners according to style guide conventions.
prop | type | required | default | explanation |
---|---|---|---|---|
children | React node | yes | n/a | The component/text to render inside the button |
className | string | no | "" | Adds an optional classname to the component |
id | string | no | "" | Adds an optional id to the component |
variant | enum("success", "error", "informational", "warning") | no | "error" | Changes icon and color style for chosen variant |
alertMessage | string | no | no | Message to display in the banner |
isDismissable | boolean | no | false | Determines whether or not the banner can be dismissed |
isFixed | boolean | no | false | Uses fixed positioning (necessary for positioning if not using with a container) |
autoDismiss | number | no | 0 | Dismisses the banner on a timer according to the milliseconds specified |
action | React component | no | null | Renders a component, intended to be an action on the banner (will apply styles to button internally) |
position | enum("top", "bottom") | no | "top" | Positions the banner on the page |
zIndex | number | no | 1 | Determines z-index style for the component |
FAQs
Banner component
We found that @bdt-component-library/banner demonstrated a not healthy version release cadence and project activity because the last version was released 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.