UNPKG

box-ui-elements-mlh

Version:
27 lines (22 loc) 657 B
// @flow import * as React from 'react'; import './Section.scss'; type Props = { children: React.Node, className?: string, description?: React.Node, /** Section title */ id?: string, /** Section description */ title: React.Node, }; const Section = ({ children, id, className = '', description, title }: Props) => ( <section className={`section ${className}`} id={id}> <div> <h5 className="section-title">{title}</h5> <div className="section-description">{description}</div> </div> <div className="section-content">{children}</div> </section> ); export default Section;