Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bpk-component-banner-alert

Package Overview
Dependencies
Maintainers
3
Versions
544
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpk-component-banner-alert

Backpack banner alert component.

  • 0.0.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
509
increased by12625%
Maintainers
3
Weekly downloads
 
Created
Source

bpk-component-banner-alert

Backpack banner alert component.

Installation

npm install bpk-component-banner-alert --save

Usage

import React from 'react'
import BpkBannerAlert, { ALERT_TYPES } from 'bpk-component-banner-alert'

const longMessage = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sagittis sagittis purus, id blandit ipsum. Pellentesque nec diam nec erat condimentum dapibus. Nunc diam augue, egestas id egestas ut, facilisis nec mi. Donec et congue odio, nec laoreet est. Integer rhoncus varius arcu, a fringilla libero laoreet at. Mauris porta varius ullamcorper. Sed laoreet libero mauris, non pretium lectus accumsan et. Suspendisse vehicula ullamcorper sapien, et dapibus mi aliquet non. Pellentesque auctor sagittis lectus vitae rhoncus. Fusce id enim porttitor, mattis ante in, vestibulum nulla.'

export default MyComponent = () => (
  <BpkBannerAlert 
    message='Successful alert with more information.' 
    type={ALERT_TYPES.SUCCESS}
  >
    {longMessage}
  </BpkBannerAlert>
)

Props

PropertyPropTypeRequiredDefault Value
typeALERT_TYPES (one of)true-
messagestringtrue-
children-falsenull
toggleButtonLabelstringfalsenull

FAQs

Package last updated on 21 Nov 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc