UNPKG

react-onsenui

Version:

Onsen UI - React Components for Hybrid Cordova/PhoneGap Apps with Material Design and iOS UI components

49 lines (42 loc) 1.05 kB
import PropTypes from 'prop-types'; import 'onsenui/esm/elements/ons-alert-dialog-button'; import onsCustomElement from '../onsCustomElement'; /** * @original ons-alert-dialog-button * @category dialog * @tutorial react/Reference/dialog * @description * [en]Component that represent each button of the alert dialog.[/en] * [ja][/ja] */ const AlertDialogButton = onsCustomElement('ons-alert-dialog-button'); AlertDialogButton.propTypes = { /** * @name modifier * @type string * @required false * @description * [en]The appearance of the alert dialog button.[/en] * [ja][/ja] */ modifier: PropTypes.string, /** * @name disabled * @type bool * @description * [en] * Specifies whether the button is disabled. * [/en] * [ja][/ja] */ disabled: PropTypes.bool, /** * @name onClick * @type function * @description * [en]This function will be called when the button is clicked.[/en] * [ja][/ja] */ onClick: PropTypes.func }; export default AlertDialogButton;