Skip to content

Commit 33d7a58

Browse files
committed
Add new Badge component to apply border-radius by default
1 parent cfd4b63 commit 33d7a58

File tree

1 file changed

+9
-0
lines changed
  • extensions/ql-vscode/src/view/common

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { VscodeBadge } from "@vscode-elements/react-elements";
2+
3+
// This applies the counter variant by default so the border-radius attribute is set
4+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5+
export const Badge = (props: any) => (
6+
<VscodeBadge variant="counter" {...props}>
7+
{props.children}
8+
</VscodeBadge>
9+
);

0 commit comments

Comments
 (0)