MCPcopy Create free account
hub / github.com/code100x/daily-code / Badge

Function Badge

packages/ui/src/shad/ui/badge.tsx:25–27  ·  view source on GitHub ↗
({ className, variant, ...props }: BadgeProps)

Source from the content-addressed store, hash-verified

23export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
24
25function Badge({ className, variant, ...props }: BadgeProps) {
26 return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
27}
28
29export { Badge, badgeVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected