MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / Button

Function Button

frontend/src/shared/components/ui/button.tsx:41–60  ·  view source on GitHub ↗
({
  className,
  variant,
  size,
  asChild = false,
  ...props
}: React.ComponentProps<"button"> &
  VariantProps<typeof buttonVariants> & {
    asChild?: boolean
  })

Source from the content-addressed store, hash-verified

39)
40
41function Button({
42 className,
43 variant,
44 size,
45 asChild = false,
46 ...props
47}: React.ComponentProps<"button"> &
48 VariantProps<typeof buttonVariants> & {
49 asChild?: boolean
50 }) {
51 const Comp = asChild ? Slot : "button"
52
53 return (
54 <Comp
55 data-slot="button"
56 className={cn(buttonVariants({ variant, size, className }))}
57 {...props}
58 />
59 )
60}
61
62export { Button, buttonVariants }

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…