MCPcopy Create free account
hub / github.com/arctic-cli/interface / Badge

Function Badge

packages/web/components/ui/badge.tsx:45–56  ·  view source on GitHub ↗
({ className, variant, size, render, ...props }: BadgeProps)

Source from the content-addressed store, hash-verified

43}
44
45function Badge({ className, variant, size, render, ...props }: BadgeProps) {
46 const defaultProps = {
47 className: cn(badgeVariants({ className, size, variant })),
48 "data-slot": "badge",
49 };
50
51 return useRender({
52 defaultTagName: "span",
53 props: mergeProps<"span">(defaultProps, props),
54 render,
55 });
56}
57
58export { Badge, badgeVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected