UNPKG

@atlaskit/button

Version:

A button triggers an event or action. They let users know what will happen next.

19 lines 671 B
/** @jsx jsx */ import { jsx } from '@emotion/core'; import { gridSize } from '@atlaskit/theme/constants'; import { getLoadingStyle } from './utils'; export default ({ spacing, icon, isOnlyChild, isLoading, ...rest }) => (jsx("span", Object.assign({ css: { alignSelf: 'center', display: 'flex', flexShrink: 0, lineHeight: 0, fontSize: 0, userSelect: 'none', margin: spacing === 'none' ? 0 : isOnlyChild ? `0 -${gridSize() / 4}px` : `0 ${gridSize() / 2}px`, ...getLoadingStyle(isLoading), } }, rest), icon)); //# sourceMappingURL=IconWrapper.js.map