Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gorgeous-dryers-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zenml-io/react-component-library": patch
---

export badge props
4 changes: 2 additions & 2 deletions src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export const badgeVariants = cva("inline-flex items-center", {
}
});

interface ButtonVariants
export interface BadgeProps
extends Omit<HTMLAttributes<HTMLDivElement>, "color">,
VariantProps<typeof badgeVariants> {}

export function Badge({ children, className, color, rounded, size, ...rest }: ButtonVariants) {
export function Badge({ children, className, color, rounded, size, ...rest }: BadgeProps) {
return (
<div {...rest} className={cn(badgeVariants({ color, rounded, size }), className)}>
{children}
Expand Down