Skip to content

Commit

Permalink
Replace interface with type
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Jan 24, 2024
1 parent 334eef8 commit 3bbefdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export const badgeColors = [

type BadgeColor = (typeof badgeColors)[number]

export interface BadgeProps extends HTMLAttributes<HTMLElement> {
export type BadgeProps = {
color?: BadgeColor
label: string | number
}
} & HTMLAttributes<HTMLElement>

export const Badge = forwardRef(
({ label, className, color = 'dark-green', ...restProps }: BadgeProps, ref: ForwardedRef<HTMLElement>) => (
Expand Down

0 comments on commit 3bbefdd

Please sign in to comment.