Socket
Socket
Sign inDemoInstall

@berlitz/alert

Package Overview
Dependencies
118
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @berlitz/alert

Alert component for the Max Design System


Version published
Weekly downloads
2.2K
decreased by-14.14%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Alert npm version

Display an alert banner in four different categories such as danger, warning, info and success .

Installation

yarn add @berlitz/alert

Props

ArgumentTypeRequiredDefaultNotes
headingstringnullTake the heading text of the alert
contentstringnullThis takes the main content of the component
typestring"info"This prop will accept danger, warning, info or success
childrennodenulluseful for adding a addition element such as button
disableIconboolNAfalseremoves icon from the component
roundedboolNAfalserounds the radius and adds 1px border to component

Usage

import Alert from '@berlitz/alert'
const MyAlert () => <Alert type="success" heading="Success" content="I am a success alert!" />
  • Privacy policy banner
  • Confidentiality Agreement
  • Displaying a persistent, message to the user

FAQs

Last updated on 11 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc