Comment Button
This component is used to display a button with an embedded number indicator.
How to use
import CommentButton from 'calypso/blocks/comment-button';
function render() {
return <CommentButton commentCount={ 123 } />;
}
Props
commentCount: Number indicating the number of comments to be displayed next to the button.href: String URL destination to be used with atagNameofa. Defaults tonull.onClick: Function to be executed when the user clicks the button.showLabel: Boolean indicating whether or not the label with the comments count is visible. Defaults totrue.size: Number with the size of the comments icon to be displayed. Defaults to 24.tagName: String with the HTML tag we are going to use to render the component. Defaults to 'li'.target: Stringtargetattribute to be used with atagNameofa. Defaults tonull.