GitbookIO / styleguide

GitBook.com HTML/CSS Style Guide
http://styleguide.gitbook.com
Apache License 2.0
86 stars 23 forks source link

Add CountWidget component #53

Closed jpreynat closed 7 years ago

jpreynat commented 7 years ago

This PR adds a CountWidget component that allows to display a diff count between two measures. This is quite similar to the GitHub branch commits diff element.

Basic
<CountWidget left={...} right={...} minWidth={...} />

image

Tooltipped
<Tooltip title="...">
    <CountWidget left={...} right={...} minWidth={...} />
</Tooltip>

image