Skip to content

Commit 847418f

Browse files
feat: export Badge Props (#61)
1 parent f6d79b0 commit 847418f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/gorgeous-dryers-love.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@zenml-io/react-component-library": patch
3+
---
4+
5+
export badge props

src/components/Badge/Badge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export const badgeVariants = cva("inline-flex items-center", {
3636
}
3737
});
3838

39-
interface ButtonVariants
39+
export interface BadgeProps
4040
extends Omit<HTMLAttributes<HTMLDivElement>, "color">,
4141
VariantProps<typeof badgeVariants> {}
4242

43-
export function Badge({ children, className, color, rounded, size, ...rest }: ButtonVariants) {
43+
export function Badge({ children, className, color, rounded, size, ...rest }: BadgeProps) {
4444
return (
4545
<div {...rest} className={cn(badgeVariants({ color, rounded, size }), className)}>
4646
{children}

0 commit comments

Comments
 (0)