UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

14 lines (13 loc) 366 B
import { css } from 'glamor'; /** * Creates a class name for the flex-wrap property * @param {boolean} [value=false] TRUE for 'wrap', FALSE for 'nowrap' * @return {string} The class name */ export const wrap = (value = false) => css({ flexWrap: value ? 'wrap' : 'nowrap' }).toString(); export default css({ display: 'flex', minWidth: '100%' }).toString();