Skip to content
S

sweetalert2-react-content

Official SweetAlert2 enhancer adding support for React elements as content

by sweetalert2Open source

#1271in UI Libraries
0In stores

Description

sweetalert2-react-content is the official enhancer for SweetAlert2, the library for showing alert dialogs in the browser. It lets you pass R…

Highlights

  • React elements as popup title, text and buttons
  • Works with footer, icon and loader options
  • Recipes for React Router and date pickers
  • UMD build for browser use

Ratings & Reviews

No ratings yet

Be the first to rate sweetalert2-react-content.

People also visit

S

sweetalert2

A beautiful, responsive, highly customizable and accessible

UI Libraries
Launch
R

react-modal

Accessible modal dialog component for React

UI Libraries
Launch
R

react-alert

A simple react alert component

UI Libraries
Launch
R

react-toastify

React notification made easy

UI Libraries
Launch
R

react-notifications-component

React component for creating notifications on the fly

UI Libraries
Launch
R

react-popup

React popup component from Minutemailer

UI Libraries
Launch

sweetalert2-react-content FAQ

What is sweetalert2-react-content?

An add-on for SweetAlert2 that lets its popup content be React elements.

Which options accept React elements?

The README lists title, html, confirmButtonText, denyButtonText, cancelButtonText, footer, closeButtonHtml, iconHtml and loaderHtml.

Do I need SweetAlert2 as well?

Yes. This package enhances SweetAlert2, which is the library that shows the dialogs.

Are there examples?

The README links three recipes: a simple example, one that uses React Router and one that uses react-day-picker.

Is there a browser build?

Yes. The UMD file defines window.sweetalert2ReactContent when the page is not using CommonJS or AMD.

What are the best sweetalert2-react-content alternatives?

Popular alternatives to sweetalert2-react-content include sweetalert2, react-modal and react-alert. See all sweetalert2-react-content alternatives

Developer Stuff

Badges