react-crouton alternatives and similar libraries
Based on the "Notification" category.
Alternatively, view react-crouton alternatives based on common mentions on social networks and blogs.
-
notistack
Highly customizable notification snackbars (toasts) that can be stacked on top of each other -
react-notification-system
A complete and totally customizable component for notifications in React -
react-toast-notifications
๐ A toast notification system for react -
reapop
:postbox: A simple and customizable React notifications system -
react-notifications-component
Delightful and highly customisable React Component to notify your users -
cogo-toast
Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons -
react-s-alert
Alerts / Notifications for React with rich configuration options. -
simple-react-notifications
Tiny React.js notification library (1kb gzip).
Appwrite - The Open Source Firebase alternative introduces iOS support
Do you think we are missing an alternative of react-crouton or a related project?
README
React-Crouton 
A message component for reactjs
Getting Started
Install via npm
npm i react-crouton --save-dev
Usage
var Crouton = require('react-crouton')
var data = {
id: Date.now(),
type: 'error',
message: 'Hello React-Crouton',
autoMiss: true || false,
onDismiss: listener,
buttons: [{
name: 'close',
listener: function() {
}
}],
hidden: false,
timeout: 2000
}
<Crouton
id={data.id}
type={data.type}
message={data.message}
onDismiss={data.onDismiss}
buttons={data.buttons}
hidden={data.hidden}
timeout={data.timeout}
autoMiss={data.autoMiss}>
// You can render child component here
// <ChildComponent />
</Crouton>
Options
id required, every message need an unique id.
type: number
message required, the message what you want show.
type: string
|| array
example:
message: 'Hello React-Crouton'
message: ['Hello', 'React', '-', 'Crouton']
type required, define what type message you want to define.
type: string
hidden optional, control this property to show or hidden crouton.
type: boolean
, default is false
buttons optional, define the buttons that you want show to the user.
type: string
|| array
example:
buttons: 'close'
butons: [{
name: 'close'
}]
butons: [{
name: 'close',
listener: function() {
console.log('close button clicked.')
}
}]
butons: [{
name: 'close',
className: 'custom class name',
listener: function() {
console.log('close button clicked.')
}
}]
autoMiss optional, crouton will auto missed if set this propterty, default is true.
type: boolean
timeout optional, set how long (ms) to auto dismiss the crouton.
type: number
, default is 2000
ms (2 seconds)
onDismiss optional, crouton will invoke this listener when it dismissed.
type: function
License
MIT
*Note that all licence references and agreements mentioned in the react-crouton README section above
are relevant to that project's source code only.