MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / Badge

Function Badge

components/ui/badge.tsx:30–50  ·  view source on GitHub ↗
({
  className,
  variant = "default",
  render,
  ...props
}: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>)

Source from the content-addressed store, hash-verified

28);
29
30function Badge({
31 className,
32 variant = "default",
33 render,
34 ...props
35}: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>) {
36 return useRender({
37 defaultTagName: "span",
38 props: mergeProps<"span">(
39 {
40 className: cn(badgeVariants({ className, variant })),
41 },
42 props
43 ),
44 render,
45 state: {
46 slot: "badge",
47 variant,
48 },
49 });
50}
51
52export { Badge, badgeVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected