Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@patternfly/pfe-toast
Advanced tools
Toast element for PatternFly Elements
Weekly downloads
Readme
pfe-toast
is a self-contained alert that is hidden on page load and slides in/out of the view when programmatically opened/closed.
<pfe-toast>
<p>You've been successfully toasted!</p>
</pfe-toast>
The default slot can contain any type of content.
auto-dismiss
: This is an optional attribute string that you can provide to automatically dismiss the alert. The auto-dismiss delay value can be provided in seconds or in milliseconds. For example, auto-dismiss="3s"
and auto-dismiss="3000ms"
will dismiss the toast alert after three seconds. If no delay value is provided, it will default to eight seconds.close-label
: This is an optional attribute string that you can provide that sets the aria-label on the close button in the shadow DOM. The aria-label attribute will default to "Close".--pfe-toast--MaxWidth
.--pfe-toast--MinWidth
.--pfe-toast--Top
. --pfe-toast--Right
.Manually opens a toast. Return the toast that has been opened.
document.querySelector("pfe-toast").open();
Manually closes a toast. Returns the toast that has been closed.
document.querySelector("pfe-toast").close();
Manually toggles a toast. Returns the toast that has been toggled.
document.querySelector("pfe-toast").toggle();
Fires when a toast is manually openned.
Fires when a toast is manually closed.
npm run test
npm run build
From the PFElements root directory, run:
npm start
Toast (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.
FAQs
Toast element for PatternFly Elements
The npm package @patternfly/pfe-toast receives a total of 12 weekly downloads. As such, @patternfly/pfe-toast popularity was classified as not popular.
We found that @patternfly/pfe-toast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.