MCPcopy Create free account
hub / github.com/Mobilecn-UI/nativecn-ui / Button

Function Button

components/Button.tsx:57–79  ·  view source on GitHub ↗
({
  label,
  labelClasses,
  className,
  variant,
  size,
  ...props
}: ButtonProps)

Source from the content-addressed store, hash-verified

55 labelClasses?: string;
56}
57function Button({
58 label,
59 labelClasses,
60 className,
61 variant,
62 size,
63 ...props
64}: ButtonProps) {
65 return (
66 <TouchableOpacity
67 className={cn(buttonVariants({ variant, size, className }))}
68 {...props}
69 >
70 <Text
71 className={cn(
72 buttonTextVariants({ variant, size, className: labelClasses })
73 )}
74 >
75 {label}
76 </Text>
77 </TouchableOpacity>
78 );
79}
80
81export { Button, buttonVariants, buttonTextVariants };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected