react-onsenui
Version:
Onsen UI - React Components for Hybrid Cordova/PhoneGap Apps with Material Design and iOS UI components
42 lines (37 loc) • 975 B
JSX
import PropTypes from 'prop-types';
import 'onsenui/esm/elements/ons-list-title';
import onsCustomElement from '../onsCustomElement';
const propTypes = {
/**
* @name modifier
* @type string
* @description
* [en]
* Specify modifier name to specify custom styles. Optional.
* [/en]
* [ja][/ja]
*/
modifier: PropTypes.string
};
/**
* @original ons-list-title
* @category list
* @tutorial react/Reference/list
* @description
* [en] Title element for lists. Usually comes before ons-list component.
[/en]
* [ja][/ja]
* @example
* <ListTitle>List Title</ListTitle>
<List
dataSource={this.state.data}
renderHeader={() =>
<ListHeader style={{fontSize: 15}} className="testClass"> Header Text </ListHeader> }
renderRow={(row, idx) => (
<ListItem > {row} </ListItem>
)}
/>
*/
const ListTitle = onsCustomElement('ons-list-title', {propTypes});
ListTitle.propTypes = propTypes;
export default ListTitle;