How to use the rc-collapse.propTypes function in rc-collapse

To help you get started, we’ve selected a few rc-collapse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github salt-ui / saltui / src / Collapse / Collapse.jsx View on Github external
/**
 * Collapse Component for SaltUI
 * @author
 *
 * Copyright 2018-2019, SaltUI Team.
 * All rights reserved.
 */
import RcCollapse from 'rc-collapse';
import assign from 'object-assign';
import Context from '../Context';

class Collapse extends RcCollapse {}

Collapse.displayName = 'Collapse';
Collapse.propTypes = RcCollapse.propTypes;
Collapse.defaultProps = assign({}, RcCollapse.defaultProps, {
  prefixCls: Context.prefixClass('collapse'),
});

export default Collapse;
github salt-ui / saltui / src / Collapse / src / Collapse.jsx View on Github external
/**
 * Collapse Component for tingle
 * @author 
 *
 * Copyright 2014-2016, Tingle Team.
 * All rights reserved.
 */
import React from 'react';
import RcCollapse from 'rc-collapse';
import assign from 'object-assign';

class Collapse extends RcCollapse {}

Collapse.displayName = 'tingle-collapse';
Collapse.propTypes = RcCollapse.propTypes;
Collapse.defaultProps = assign({}, RcCollapse.defaultProps, {
  prefixCls: 'tingle-collapse',
});

export default Collapse;

rc-collapse

rc-collapse ui component for react

MIT
Latest version published 25 days ago

Package Health Score

89 / 100
Full package analysis