UNPKG

parvus-ui

Version:

A micro UI kit with all the main UI components in less than 5KB

30 lines (24 loc) 533 B
/* @flow */ import React, { type Node } from 'react'; import cxs from 'cxs'; type Props = { children: string | Node, className?: string, styles?: Object, otherProps?: Object }; const Breadcrumb = (props: Props) => { const { className, children, styles, ...otherProps } = props; const _styles = cxs({ padding: 0, margin: 0, listStyle: 'none', ...styles }); return ( <ul className={`${_styles} ${className || ''}`} {...otherProps}> {children} </ul> ); }; export default Breadcrumb;