{"name":"@styled-system/should-forward-prop","version":"5.0.16","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.16"},"gitHead":"ba90b18c253dbce67125fb2ba65776ccfde68a9b","_id":"@styled-system/should-forward-prop@5.0.16","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.16.1/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-hv5oOuhp7gPRte31/IjyWLUOQuiaQMOZo0sqg+VuRFwZ64DcW1NZ5XGX6uq89UbLnrdhpRSHfkWFSYYiHf/OLw==","shasum":"a56dcdf060e5fb056716db1915676707e935f3d7","tarball":"http://registry-npm.ywwl.com/@styled-system/should-forward-prop/download/@styled-system/should-forward-prop-5.0.16.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\nwsFcBAEBCAAQBQJdNfoACRA9TVsSAnZWagAAFX4P/1FNNqpajqzcAp2hu9wY\nvT+CiFnYO6DbFIn0noSBGwhPxu7fSJs0/F3cId7vEw9AqVbn8/O+WYrRpnjV\n9Y6OI3OjMRMKLQeF3f+lGlz3tiVZSK2JZpdWMb/VnT+ZRa7JF964eBPdmpSa\nNks0aWeQCcC1uPhyQcHZMEFzuhFp8Ahscrmn42TiPFJlmfk++17ff44HMAj+\n5LDSjSCp0Vffm3EWp0pLtQ5Q31xcEkhD0TBn83GTfuReNP0GT+gZDuTbiLPd\nqG5DKQT63Qfr5K1hzd7tON8YT5fuignB6ci7bz92YVoZpgyRgXX0AuncFexp\nRQm9HkAeJqZL5AwaO27go/7eviGF0SRyJMLaQyYvmVeY0rQnN0IcVsrqR/OE\nFZW+UIvJBmGLJnuUT31bhvheW5L5Wml3QBVPhFoozKFL3AK7CLZsOlaV4Qe8\nwpY19Lrk+n2iKS7/WA6OfOGf4oe5vFJh37OTjhCUEc2agbkyPf/xLHvv0GKE\nkcXdE+XosCVeDHi8I1YEJdPI0kP+I4s5ZvTR+U755T7kRJbsVdhrhm1XIHZN\nS9pndFgsIMguYXIZYSkDWnz8lOIfZEjeW42YEqFEn0o8xwFPloKLXOh3ciFC\n48gHNg6Au358AgC/8bWgioQha8xrIqWXMAvBA+MGga3wJNy7yh90b3iIHU8h\nGk2b\r\n=ahYg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3w4TthfZ/C08YaunJD6a/fh2idvc9DQRRE+Z7APDewgIhAOI3jMDjHqiOFcQBoezB0CNjALwMg3xsyqpIH+lie0vM"}],"size":2280,"noattachment":false,"key":"/@styled-system/should-forward-prop/-/@styled-system/should-forward-prop-5.0.16.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.16_1563818495501_0.911885636907974"},"_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":1563818495617,"_cnpm_publish_time":1563818495617,"dist-tags":{"latest":"5.1.5","next":"5.0.0-12"}}