{"name":"@styled-system/should-forward-prop","version":"5.0.21","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.21"},"gitHead":"f97ef2c9369a4ce7e45409d78415e7e07829c214","_id":"@styled-system/should-forward-prop@5.0.21","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.4/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-BcGgIDCZa0nuQb+CP9oW/sGXV+lRxVVMweL+n/k5lk1H/MPLskHhAW+q6r0xDly+mdKQw+ilek/WnomO8kV0Xw==","shasum":"40919c8e1bb10a5d58dcc057e9c927e60a5e7b1d","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.21.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\nwsFcBAEBCAAQBQJdTCxyCRA9TVsSAnZWagAApq4P/0ggLldSagPA8jdFanUq\ncm6VOAtI5nFY0iOeRblNg8HeQGMUK8PhMA8Z9mwzw/xNzRNwLMbfe+R/auWz\nOorJD6H+MBxVMa/DE1dathO7eRhzDsZ2zNF2sD1RJqvtAz8tS66DxhTz46Io\nkzFcVny0a8uDqldTBm9n/sshwfYAy9fbdolYwtxocVfeIT1CjrarjUBY5/Fe\n0yiJVXxtPoY1vogsuAJcdMR4lEDkpZDX6Zycx8dxoxcaFiJWQ2sR35Oy9tg4\nQaZnzV/qdjZifUppd1qtZJ3jlFSre4al1J4oSlc2+BEtKoXwMlw+MjVvl6Nz\n6vzaSwREy1ECZjDGp8FpN4Uonq8eKu+rd2y0VB13Cjefh1ljQj5DVPNSKam/\nwjjE4oL0sJGT6SvZ8Gr2uWinTDjwN1dvWKLrB9evBOELewtTEJLmJBnWhf1Y\ngGKGLQOpsdi2szttJrQTcR1LUK6m55lqnUt/tDnErhUhtRrNakCBvxHnDN8G\nvIUZrX9UkGNuKhT4hQqjGtZN78WVqHQMZibHjUNh715zKQe8A68Pr4FLtK1G\nbM2DWzeSisfa5E2uFc+wrqL+WlrATwIf8/4pkSTuzOAHg2oS6OrwWONIvJ0X\njc7nOZ+hifPx8lUJg1VpQ82uwIFIKhbCvzrLxTBrcvRr3to2jutMmm5QRgX9\nmiZP\r\n=uIkK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJsuFpIdn8iRsGBRa5WLtGhitlOAW4SgtnBS8oWc1c0AiEArUvU2fgBAziB1XAINAx6D5yzelv2k31wxtt/140Ui9U="}],"size":2281,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.21.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.21_1565273201880_0.7596041273804919"},"_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":1565273202061,"_cnpm_publish_time":1565273202061,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}