UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

19 lines (16 loc) 529 B
import React from 'react'; import { classNames, variationName } from '../../utilities/css.js'; import styles from './List.scss.js'; import { Item } from './components/Item/Item.js'; const List = function List({ children, type = 'bullet' }) { const className = classNames(styles.List, type && styles[variationName('type', type)]); const ListElement = type === 'bullet' ? 'ul' : 'ol'; return /*#__PURE__*/React.createElement(ListElement, { className: className }, children); }; List.Item = Item; export { List };