Skip to content

Commit

Permalink
Bump size
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Feb 24, 2022
1 parent fb08081 commit 6c32db1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
"size-limit": [
{
"path": "dist/components.cjs.production.min.js",
"limit": "100 KB"
"limit": "150 KB"
},
{
"path": "dist/components.esm.js",
"limit": "100 KB"
"limit": "150 KB"
}
],
"devDependencies": {
Expand Down
24 changes: 24 additions & 0 deletions src/field/Addon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React, { ReactNode } from 'react';
import { css } from '@emotion/core';
import theme from '../theme';
import { Text } from '../content/Text';

const addonBeforeCSS = css`
background-color: ${theme.colors.gray400};
padding: ${theme.spacing.padding8}px;
flex: none;
box-sizing: border-box;
`;

/**
* A label element that describes a button or an input field
*/
export function AddonBefore({ children }: { children: ReactNode }) {
return (
<div css={addonBeforeCSS} className="ac-addon ac-addon--before">
<Text textSize="medium" weight="heavy" color="white70">
{children}
</Text>
</div>
);
}

0 comments on commit 6c32db1

Please sign in to comment.