Sha256: e03a73d3a0a06a5123780cb8f02a9a1938a3fc1251091ebb4c82b8e036e15cd2
Contents?: true
Size: 761 Bytes
Versions: 41
Compression:
Stored size: 761 Bytes
Contents
const UIAnnotatedSection = ({ title, description, children }) => { return ( <section className="ui-annotated-section"> <div className="ui-annotated-section__annotation"> <div className="ui-annotated-section__title"> <h2 className="next-heading next-heading--no-margin">{title}</h2> </div> <div className="ui-annotated-section__description"> {typeof description == 'string' ? <p>{description}</p> : description} </div> </div> <div className="ui-annotated-section__content"> {children} </div> </section> ); }; UIAnnotatedSection.propTypes = { title: React.PropTypes.string.isRequired, description: React.PropTypes.node, children: React.PropTypes.node };
Version data entries
41 entries across 41 versions & 1 rubygems