@swrve/core
Version:
Core set of Swrve UI Components
19 lines (14 loc) • 436 B
JSX
import React from 'react'
import classNames from 'classnames'
import { string, object, array, node, oneOfType } from 'prop-types'
const List = ({ children, className }) => (
<ul className={classNames('sw-list', className)}>{children}</ul>
)
List.displayName = 'List'
List.propTypes = {
/** Component's children */
children: node,
/** Custom className */
className: oneOfType([string, object, array])
}
export default List