How to use react-toast-notifications - 3 common examples

To help you get started, we’ve selected a few react-toast-notifications examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keystonejs / keystone / packages / app-admin-ui / client / components / ConnectivityListener.js View on Github external
// add the applicable toast
    toastManager.add(
      content,
      {
        appearance: 'info',
        autoDismiss: isOnline,
      },
      callback
    );
  }
  render() {
    return null;
  }
}

export default withToastManager(ConnectivityListener);
github keystonejs / keystone / packages / app-admin-ui / client / components / CreateItemModal.js View on Github external
export default function CreateItemModalWithMutation(props) {
  const { list } = props;
  const { addToast } = useToasts();
  const [createItem, { loading }] = useMutation(list.createMutation, {
    errorPolicy: 'all',
    onError: error => handleCreateUpdateMutationError({ error, addToast }),
  });
  return (
    
  );
}

react-toast-notifications

A configurable, composable, toast notification system for react.

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis