UNPKG

parvus-ui

Version:

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

28 lines (22 loc) 504 B
/* @flow */ import React, { type Node } from 'react'; import cxs from 'cxs'; type Props = { children: string | Node, className?: string, styles?: Object, otherProps?: Object }; const Option = (props: Props) => { const { children, className, styles, ...otherProps } = props; const _styles = cxs({ fontSize: '1.25rem', ...styles }); return ( <option className={`${_styles} ${className || ''}`} {...otherProps}> {children} </option> ); }; export default Option;