Skip to content

Commit f42a701

Browse files
feat: version badge (#117)
Co-authored-by: davidfrigolet <dfrigolet@gmail.com>
1 parent a0698d6 commit f42a701

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export default function VersionBadge({ version }) {
2+
return (
3+
<span style={{
4+
backgroundColor: 'var(--ifm-color-primary)',
5+
color: 'white',
6+
padding: '0.1rem 0.5rem',
7+
borderRadius: '4px',
8+
fontSize: '0.65em',
9+
fontWeight: '600',
10+
verticalAlign: 'middle',
11+
marginLeft: '0.5rem',
12+
letterSpacing: '0.03em',
13+
}}>
14+
Since {version}
15+
</span>
16+
);
17+
}

0 commit comments

Comments
 (0)