New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cloudflare/component-toast

Package Overview
Dependencies
Maintainers
35
Versions
510
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/component-toast

Cloudflare Toast Component

5.1.6
latest
npm
Version published
Weekly downloads
9.1K
33.68%
Maintainers
35
Weekly downloads
 
Created
Source

@cloudflare/component-toast

Cloudflare Toast Component

Installation

Installation with yarn is recommended


$ yarn add @cloudflare/component-toast

Usage

import React from 'react';
import { Toast } from '../../src';

class ToastComponent extends React.Component {
  render() {
    return (
      <div>
        <Toast type="success">Something very successful happened!!!</Toast>
        <Toast type="error">Something failed horribly</Toast>
        <Toast mb={0} type="info">
          Please be advised
        </Toast>
      </div>
    );
  }
}

export default ToastComponent;

FAQs

Package last updated on 23 May 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