{"action":"created","issue":{"url":"https://api.github.com/repos/JedWatson/classnames/issues/17","labels_url":"https://api.github.com/repos/JedWatson/classnames/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/classnames/issues/17/comments","events_url":"https://api.github.com/repos/JedWatson/classnames/issues/17/events","html_url":"https://github.com/JedWatson/classnames/issues/17","id":63534010,"number":17,"title":"Support a prefix for classes instead of just leaving them out","user":{"login":"rmoorman","id":219695,"avatar_url":"https://avatars.githubusercontent.com/u/219695?v=3","gravatar_id":"","url":"https://api.github.com/users/rmoorman","html_url":"https://github.com/rmoorman","followers_url":"https://api.github.com/users/rmoorman/followers","following_url":"https://api.github.com/users/rmoorman/following{/other_user}","gists_url":"https://api.github.com/users/rmoorman/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoorman/subscriptions","organizations_url":"https://api.github.com/users/rmoorman/orgs","repos_url":"https://api.github.com/users/rmoorman/repos","events_url":"https://api.github.com/users/rmoorman/events{/privacy}","received_events_url":"https://api.github.com/users/rmoorman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-22T13:51:42Z","updated_at":"2015-03-27T14:49:31Z","closed_at":null,"body":"Hello there,\r\n\r\nI would like to suggest a small addition to the functionality of this library. It would be handy IMHO if there would be a way to add a prefix (such as \"no-\") instead of just leaving the class out of the generated class string.\r\n\r\nso that next to this:\r\n```js\r\nclassNames({ foo: true }, { bar: true }); // => 'foo bar'\r\nclassNames({ foo: true }, { bar: false }); // => 'foo'\r\n```\r\n\r\nthe something like the following would also be possible:\r\n```js\r\nclassNamesPrefixed(\"no-\")({ foo: true }, { bar: true }); // => 'foo bar'\r\nclassNamesPrefixed(\"no-\")({ foo: true }, { bar: false }); // => 'foo no-bar'\r\n```\r\n\r\nBest regards,\r\nRico Moorman\r\n"},"comment":{"url":"https://api.github.com/repos/JedWatson/classnames/issues/comments/86962489","html_url":"https://github.com/JedWatson/classnames/issues/17#issuecomment-86962489","issue_url":"https://api.github.com/repos/JedWatson/classnames/issues/17","id":86962489,"user":{"login":"mtscout6","id":736870,"avatar_url":"https://avatars.githubusercontent.com/u/736870?v=3","gravatar_id":"","url":"https://api.github.com/users/mtscout6","html_url":"https://github.com/mtscout6","followers_url":"https://api.github.com/users/mtscout6/followers","following_url":"https://api.github.com/users/mtscout6/following{/other_user}","gists_url":"https://api.github.com/users/mtscout6/gists{/gist_id}","starred_url":"https://api.github.com/users/mtscout6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtscout6/subscriptions","organizations_url":"https://api.github.com/users/mtscout6/orgs","repos_url":"https://api.github.com/users/mtscout6/repos","events_url":"https://api.github.com/users/mtscout6/events{/privacy}","received_events_url":"https://api.github.com/users/mtscout6/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T14:49:30Z","updated_at":"2015-03-27T14:49:30Z","body":"What about another type of prefixing that's not a falsey prefix. For example:\r\n\r\n```\r\n// needs a better name...\r\nclassNamesPrefixedNotFalsy(\"herp-\")({ foo: true, bar: true }); // => 'herp-foo herp-bar'\r\n```\r\n\r\nThis would be an extremely useful use case for me in react-bootstrap. react-bootstrap/react-bootstrap#404 is one  example. Note that I have applied a rather crude means to accomplish this [here](https://github.com/react-bootstrap/react-bootstrap/blob/master/src/BootstrapMixin.js#L34-L36)."}}