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

Function Button

packages/web/components/ui/button.tsx:53–68  ·  view source on GitHub ↗
({ className, variant, size, render, ...props }: ButtonProps)

Source from the content-addressed store, hash-verified

51}
52
53function Button({ className, variant, size, render, ...props }: ButtonProps) {
54 const typeValue: React.ButtonHTMLAttributes<HTMLButtonElement>["type"] =
55 render ? undefined : "button";
56
57 const defaultProps = {
58 className: cn(buttonVariants({ className, size, variant })),
59 "data-slot": "button",
60 type: typeValue,
61 };
62
63 return useRender({
64 defaultTagName: "button",
65 props: mergeProps<"button">(defaultProps, props),
66 render,
67 });
68}
69
70export { Button, buttonVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected