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

@axa-fr/react-toolkit-alert

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axa-fr/react-toolkit-alert

1. [Installation](#installation) 2. [Alert](#alert) 3. [AlertCore](#alertcore) 4. [Alert With Type](#alert-with-type)

  • 3.0.2-alpha.0
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
149
increased by101.35%
Maintainers
0
Weekly downloads
 
Created
Source

@axa-fr/react-toolkit-alert

  1. Installation
  2. Alert
  3. AlertCore
  4. Alert With Type

Installation

npm i @axa-fr/react-toolkit-alert
classModifier / type
danger
info
error
success

Alert

Import

import Alert from '@axa-fr/react-toolkit-alert';
import '@axa-fr/react-toolkit-alert/dist/af-alert.css';

Use

const AlertComponent = () => (
  <Alert
    classModifier="danger"
    icon="glyphicon glyphicon-alert"
    title="Warning: information is missing"
  />
);
export default AlertComponent;

AlertCore

Import

import { AlertCore } from '@axa-fr/react-toolkit-alert';
import '@axa-fr/react-toolkit-alert/dist/af-alert.css';

Use

const MyErrorAlert = () => (
  <AlertCore
    classModifier="error"
    iconClassName="glyphicon glyphicon-minus-sign"
    title="Error :">
    <ul>
      <li>Name is required</li>
      <li>Firstname is required</li>
      <li>Email is required</li>
      <li>The date format is invalid</li>
    </ul>
  </AlertCore>
);
export default MyErrorAlert;

Alert With Type

Import

import { AlertWithType } from '@axa-fr/react-toolkit-alert';
import '@axa-fr/react-toolkit-alert/dist/af-alert.css';

Use

const MyInfoAlert = () => (
  <AlertWithType
    type="info"
    title="Info: you can also contact an advisor by phone"
  />
);
export default MyInfoAlert;

FAQs

Package last updated on 14 Nov 2024

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