How to use the clever-components/dist/utils/MorePropTypes.instanceOfComponent function in clever-components

To help you get started, we’ve selected a few clever-components 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 Clever / components / src / TabbedTable / TabbedTable.jsx View on Github external
import "./TabbedTable.less";

export default class TabbedTable extends React.PureComponent {
  static cssClass = {
    TAB_BAR: "TabbedTable--TabBar",
    TITLE: "TabbedTable--Title",
    TABS: "TabbedTable--Tabs",
    TAB_NAME: "TabbedTable--TabName",
    SELECTED_TAB_NAME: "TabbedTable--SelectedTabName",

  static propTypes = {
    children: PropTypes.arrayOf(PropTypes.oneOfType([
      PropTypes.oneOf([null, false]), // allow for conditionally including tabs
    title: PropTypes.string,

  constructor(props) {

    this.state = {
      selectedTabIndex: 0,

  _onSelect(e, tabIndex) {
    this.setState({selectedTabIndex: tabIndex});


A library of helpful React components and less styles

Latest version published 3 months ago

Package Health Score

64 / 100
Full package analysis

Similar packages