UNPKG

react-onsenui

Version:

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

64 lines (56 loc) 1.56 kB
import PropTypes from 'prop-types'; import 'onsenui/esm/elements/ons-progress-circular'; import onsCustomElement from '../onsCustomElement'; /** * @original ons-progress-circular * @category visual * @tutorial react/Reference/progress-circular * @description * [en] This component displays a circular progress indicator. It can either be used to show how much of a task has been completed or to show a looping animation to indicate that an operation is currently running. * [/en] * [ja][/ja] * @example *<ProgressCircular value={55} secondaryValue={87} /> *<ProgressCircular indeterminate /> */ const ProgressCircular = onsCustomElement('ons-progress-circular'); ProgressCircular.propTypes = { /** * @name modifier * @type string * @required false * @description * [en]The appearance of the progress indicator.[/en] * [ja][/ja] */ modifier: PropTypes.string, /** * @name value * @type number * @description * [en] * Current progress. Should be a value between 0 and 100. * [/en] * [ja][/ja] */ value: PropTypes.number, /** * @name secondaryValue * @type bool * @description * [en] * Current secondary progress. Should be a value between 0 and 100. * [/en] * [ja][/ja] */ secondaryValue: PropTypes.number, /** * @name indeterminate * @type bool * @description * [en] If this property is set, an infinite looping animation will be shown. [/en] * [ja][/ja] */ indeterminate: PropTypes.bool }; export default ProgressCircular;