import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive"; import { badge, type BadgeVariantProps } from "@seed-design/css/recipes/badge"; import type * as React from "react"; import { forwardRef } from "react"; import clsx from "clsx"; //////////////////////////////////////////////////////////////////////////////////// export interface BadgeProps extends BadgeVariantProps, PrimitiveProps, React.HTMLAttributes {} export const Badge = forwardRef( ({ className, children, ...props }, ref) => { const [variantProps, restProps] = badge.splitVariantProps(props); const { root, label } = badge(variantProps); return ( {children} ); }, ); Badge.displayName = "Badge";