react-onsenui
Version:
Onsen UI - React Components for Hybrid Cordova/PhoneGap Apps with Material Design and iOS UI components
48 lines (41 loc) • 1.1 kB
JSX
import PropTypes from 'prop-types';
import 'onsenui/esm/elements/ons-action-sheet-button';
import onsCustomElement from '../onsCustomElement';
const propTypes = {
/**
* @name modifier
* @type string
* @required false
* @description
* [en]The appearance of the action sheet button.[/en]
* [ja][/ja]
*/
modifier: PropTypes.string,
/**
* @name icon
* @type string
* @description
* [en]Creates an `Icon` component with this string. Only visible on Android.[/en]
* [ja][/ja]
*/
icon: PropTypes.string,
/**
* @name onClick
* @type function
* @description
* [en]This function will be called when the button is clicked.[/en]
* [ja][/ja]
*/
onClick: PropTypes.func
};
/**
* @original ons-action-sheet-button
* @category dialog
* @tutorial react/Reference/action-sheet
* @description
* [en]Component that represent each button of the action sheet.[/en]
* [ja][/ja]
*/
const ActionSheetButton = onsCustomElement('ons-action-sheet-button', {propTypes});
ActionSheetButton.propTypes = propTypes;
export default ActionSheetButton;