{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/1","repository_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react","labels_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/1/comments","events_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/1/events","html_url":"https://github.com/OfficeDev/office-ui-fabric-react/issues/1","id":166936393,"number":1,"title":"How to use a primary button with an icon?","user":{"login":"mike-morrison","id":6625993,"avatar_url":"https://avatars.githubusercontent.com/u/6625993?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-morrison","html_url":"https://github.com/mike-morrison","followers_url":"https://api.github.com/users/mike-morrison/followers","following_url":"https://api.github.com/users/mike-morrison/following{/other_user}","gists_url":"https://api.github.com/users/mike-morrison/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-morrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-morrison/subscriptions","organizations_url":"https://api.github.com/users/mike-morrison/orgs","repos_url":"https://api.github.com/users/mike-morrison/repos","events_url":"https://api.github.com/users/mike-morrison/events{/privacy}","received_events_url":"https://api.github.com/users/mike-morrison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-21T22:56:20Z","updated_at":"2016-07-22T15:21:59Z","closed_at":null,"body":"If I am reading the documentation right, I can only add an icon to hero or command buttons.  So this is likely by design.  Is there a way I can have the ButtonType.primary button look and have an icon?\r\n\r\nI tried this:\r\n\r\n````\r\nimport * as React from 'react';\r\nimport * as ReactDOM from 'react-dom';\r\nimport { Button, ButtonType } from 'office-ui-fabric-react/lib/Button';\r\n\r\nconst MyPage = () => (<div><Button icon=\"personAdd\" buttonType={ ButtonType.primary }>I am a button.</Button></div>);\r\n\r\nReactDOM.render(<MyPage />, document.getElementById(\"content\") as Element);\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/comments/234573489","html_url":"https://github.com/OfficeDev/office-ui-fabric-react/issues/1#issuecomment-234573489","issue_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/1","id":234573489,"user":{"login":"mike-morrison","id":6625993,"avatar_url":"https://avatars.githubusercontent.com/u/6625993?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-morrison","html_url":"https://github.com/mike-morrison","followers_url":"https://api.github.com/users/mike-morrison/followers","following_url":"https://api.github.com/users/mike-morrison/following{/other_user}","gists_url":"https://api.github.com/users/mike-morrison/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-morrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-morrison/subscriptions","organizations_url":"https://api.github.com/users/mike-morrison/orgs","repos_url":"https://api.github.com/users/mike-morrison/repos","events_url":"https://api.github.com/users/mike-morrison/events{/privacy}","received_events_url":"https://api.github.com/users/mike-morrison/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T15:21:59Z","updated_at":"2016-07-22T15:21:59Z","body":"@dzearing Thank you for the rapid response. Yes, that is what I was expecting at first glance, that I could just add an icon to any button.  Would definitely like to see it work that way.\r\n\r\nThanks for providing the sample.  That works great!"}}
{"actor":{"display_login":"mike-morrison"}}