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