Socket
Book a DemoInstallSign in
Socket

@fenderdigital/react-alert

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fenderdigital/react-alert

Fender React UI Kit Alert Component

latest
npmnpm
Version
2.1.0
Version published
Maintainers
3
Created
Source

Alert for Fender React UI Kit

Description

An Alert component is typically used to give the user information that isn't generally a call to action itself. It can be used for error states, success states or general warnings and updates of an application. Typically accompanied by an icon.

Installation and Usage

yarn install @fenderdigital/react-alert --save
import Alert from '@fenderdigital/react-alert';

Props

  • children - resolves to a react node, use to pass in your content.
  • color - the color to base the content on. The background will be a 90% transparency of the color you choose.
  • icon - the icon name from our icon set. We should consider removing this as part of the component, and pass it in as children.
  • iconSize - icon size from our type sizing scale.
  • styles - configurable tachyon classes.
propNamepropTypedefaultValueisRequired
childrennodenullno
colorstringredno
iconstringalertno
iconSizestringf5no
stylesstringitems-center f7 pv3 ph2no

Development

Check the Monorepo README for development documentation.

Keywords

react

FAQs

Package last updated on 08 Apr 2019

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