DEV Community

Takane Ichinose
Takane Ichinose

Posted on

1 1

ReactJS Dialog Box Component

Dialog box component written in ReactJS.

I prepared I18N object, but I only know 3 languages, so I only added those 3 in the constant variable.

This dialog box is inspired by Cupertino design. Textbox is inspired by Twitter Bootstrap. Buttons are inspired by Material design.

These dialog boxes are lightly animated.

Usage: 'btn' attribute is for the text content of the buttons. 'type' is for dialog box type (alert, confirm, prompt). 'title' is for the title of the dialog box. 'msg' is for the message of the dialog box. 'lang' is for the language. 'ok' is the callback function if 'OK' button is pressed. 'cancel' is the callback function if 'Cancel' button is pressed.

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️