MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / Button

Function Button

packages/plugin-ui/src/components/ui/button.tsx:43–56  ·  view source on GitHub ↗
({
  className,
  variant = "default",
  size = "default",
  ...props
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>)

Source from the content-addressed store, hash-verified

41);
42
43function Button({
44 className,
45 variant = "default",
46 size = "default",
47 ...props
48}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
49 return (
50 <ButtonPrimitive
51 data-slot="button"
52 className={cn(buttonVariants({ variant, size, className }))}
53 {...props}
54 />
55 );
56}
57
58export { Button, buttonVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected