Sha256: 3da1e3174df40c31ad55afc3d422d857ffef8c29984651ed4d344b0d3a695b33

Contents?: true

Size: 697 Bytes

Versions: 15

Compression:

Stored size: 697 Bytes

Contents

import React, { Component } from "react";
import PropTypes from "prop-types";
import VerticalNavItem from "./_item";
import Caption from "../pb_caption/_caption.jsx";

const propTypes = {
  children: PropTypes.oneOfType([
        PropTypes.arrayOf(PropTypes.node),
        PropTypes.node
    ])
};

class VerticalNav extends Component {
  static VerticalNavItem = VerticalNavItem;
  render() {
    return (
      <div className="vertical_nav_list">
        <div className="vertical_nav_list_title">
          <a>
            <Caption />
          </a>
        </div>
        <ul>{this.props.children}</ul>
      </div>
    );
  }
}

VerticalNav.propTypes = propTypes;

export default VerticalNav;

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
playbook_ui-2.9.1 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.9.0 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.9 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.8 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.7 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.6 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.5 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.4 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.3 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.8.1 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.7.2 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.7.1 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.7.0 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.6.0 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx
playbook_ui-2.5.0 app/pb_kits/playbook/pb_vertical_nav/_vertical_nav.jsx