UNPKG

@atlaskit/button

Version:

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

15 lines 670 B
import { jsx } from '@emotion/core'; import { gridSize } from '@atlaskit/theme/constants'; import { getLoadingStyle } from './utils'; export default ({ children, followsIcon, spacing, isLoading, ...rest }) => (jsx("span", Object.assign({ css: { alignItems: followsIcon ? 'baseline' : 'center', alignSelf: followsIcon ? 'baseline' : 'center', flex: '1 1 auto', margin: spacing === 'none' ? 0 : `0 ${gridSize() / 2}px`, maxWidth: '100%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', ...getLoadingStyle(isLoading), } }, rest), children)); //# sourceMappingURL=Content.js.map