
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
cf-components-alert
Advanced tools
A simple alert web component.
In an HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module" src="components/alert/cf-alert.js"></script>
<!--
Use CSS custom properties to alter styles within the component.
-->
<style>
--alert-bg-default: hotpink;
</style>
</head>
<body>
<cf-alert>
This is the default alert.
</cf-alert>
<cf-alert type="info">
This is an info alert.
</cf-alert>
<cf-alert type="tip">
This is an tip / success alert.
</cf-alert>
<cf-alert type="warning">
This is an warning alert.
</cf-alert>
<cf-alert type="danger">
This is an danger alert.
</cf-alert>
</body>
</html>
With npm:
npm install cf-alert
import 'cf-alert';
Each type of alert can be customized by changing the background color or the text color. Use the following custom properties for customization:
/* Default */
--alert-bg-default: #f0f4f8; /* background-color */
--alert-color-default: #334e68; /* text color */
/* Info */
--alert-bg-info: #e3f8ff;
--alert-color-info: #035388;
/* Tip / Success */
--alert-bg-tip: #effcf6;
--alert-color-tip: #014d40;
/* Warning */
--alert-bg-warning: #fffbea;
--alert-color-warning: #8d2b0b;
/* Danger */
--alert-bg-danger: #ffe3e3;
--alert-color-danger: #610316;
FAQs
"An alert web component"
The npm package cf-components-alert receives a total of 3 weekly downloads. As such, cf-components-alert popularity was classified as not popular.
We found that cf-components-alert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.