<!--- pxToRem.stories.mdx --->

import { Meta } from '@storybook/addon-docs';

<Meta title="utils/pxToRem" />

# pxToRem

Converts px to rem.

## Usage

```js
import { pxToRem } from '@strapi/helper-plugin';
import { Box } from '@strapi/design-system';
import styled from 'styled-components'

const StyledBox = styled(Box)`
  width: ${pxToRem}
`

const HomePage = () =>
  return (
    <StyledBox>I'm a sized box</StyledBox>
  );
};
```
