{"name":"@styled-system/should-forward-prop","version":"5.0.15","description":"Utility for filtering Styled System props with Emotion's shouldForwardProp option","main":"dist/index.js","module":"dist/index.esm.js","keywords":[],"author":{"name":"Brent Jackson","email":"jxnblk@gmail.com"},"license":"MIT","dependencies":{"@emotion/is-prop-valid":"^0.8.1","@emotion/memoize":"^0.7.1","styled-system":"^5.0.15"},"gitHead":"b5a2fad93c1d8a21e9669270167e750890249c46","_id":"@styled-system/should-forward-prop@5.0.15","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-7dGH2Tc56+2GQVqZfLr5SUFVxpZoz1oLv0h6B+S+6BdWNw+5vYC8fbSnkbq1xxil7g/z1WF9I8FDVlY5EEzuqw==","shasum":"e264fb77764d2e14650159d97b278142131c61a9","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.15.tgz","fileCount":7,"unpackedSize":5541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLL2oCRA9TVsSAnZWagAAyWsP+QFOIC8jbFkoGeUGnyMa\n38sPiJw/+BBY7laCh3unWvigANEd1Nof39Crg0FZnO2vmilQvVo3xj0D+zXx\ndn/z13inkrUmm2ngv+H7wDTCLWfLxgbrG1IVMGaEhFEVkp26vEez1+oA0wsC\nJFTCvXD9iBtToBZCgrltwA+SRamjz2vfHHMSPq+RtVfjbOUQNUMHRrfHM3eB\noCU66aLTTpxH9NM/ve/3HqS9VsOP2AF9ZSGuijRfyeTutGEImLMmGQDxZ8E6\n5RZ2bEc/V3n1oKbr91yFQxXlNcDhdy8S5HIrGb2lSDSzOoAew+V7TAQwlaZE\nSWAuJkRWTxuFVAN4KMFyy/R3cDJxL3e5gG3BdSO0aPg5+7Pg1AHNQaWGGvLr\nAzrEDD3ubEmR/PB0c+QxKKgmMPDqWCtLs8OFdAkJtYYdguNbfwljRA3DTn6l\n96mKeX+pkh770pWlprt9vN/BYX6UoSn0tgkoMdIIM/an1NzRTaDq6vx67YFt\nbiomsYNTRjNVI/f/y+q2Iblil1w+Nlm9UMvvpOl6ezVV9RckFlBVzixb/98t\nfI1fJ5VcRscu6lVFxgPovXv4gNCk+k+4i2vMl+/c6bz1hGRpu46oGpCaa0wD\n536gZnu8gP+TSO5C30SQ1MNKmpABQZLGeTxl64LF5x7e+fV03XD8TtuZnlUr\nA82/\r\n=aRpN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1jF6hDoN16RnlVe/X+yTzL0O1UveoTd5ZTOMQGG7gDAiAP/T/bTILTR6E2zfjmrBuTQViFCnLQOSNddgqmV2p61w=="}],"size":2264,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.15.tgz"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/should-forward-prop_5.0.15_1563213223783_0.6335448107027475"},"_hasShrinkwrap":false,"readme":"\n# @styled-system/should-forward-prop\n\nUtility for filtering Styled System props with Emotion's shouldForwardProp option\n\n```sh\nnpm i @styled-system/should-forward-prop\n```\n\n```js\nimport styled from '@emotion/styled'\nimport {\n  space,\n  color,\n  typography\n} from 'styled-system'\nimport shouldForwardProp from '@styled-system/should-forward-prop'\n\nconst Box = styled('div', { shouldForwardProp })(\n  space,\n  color,\n  typography\n)\n```\n\n## Custom Props\n\nTo exclude other custom props not included in Styled System, use the `createShouldForwardProp` utility.\n\n```js\nimport styled from '@emotion/styled'\nimport { space, color } from 'styled-system'\nimport { createShouldForwardProp, props } from '@styled-system/should-forward-prop'\n\nconst shouldForwardProp = createShouldForwardProp([\n  ...props,\n  'd',\n  'x'\n])\n\nconst Box = styled('div', {\n  shouldForwardProp\n})(props => ({\n  display: props.d,\n  fontWeight: props.x ? 'bold' : null,\n}),\n  space,\n  color\n)\n```\n\nMIT License\n","publish_time":1563213223966,"_cnpm_publish_time":1563213223966,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}