@cloudflare/component-toast

Cloudflare Toast Component

Stats

StarsIssuesVersionUpdatedCreatedSize
@cloudflare/component-toast
3.2.6817 days ago3 years agoMinified + gzip package size for @cloudflare/component-toast in KB

Readme

@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;

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.