Home / Function/ Button() — supabase Function Reference

Button() — supabase Function Reference

Architecture documentation for the Button() function in button.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  131097b4_f171_e692_ee58_527e42f1d87b["Button()"]
  6215f5f8_959b_0d27_9c02_ce5f395aab88["cn()"]
  131097b4_f171_e692_ee58_527e42f1d87b -->|calls| 6215f5f8_959b_0d27_9c02_ce5f395aab88
  style 131097b4_f171_e692_ee58_527e42f1d87b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/cms/src/components/ui/button.tsx lines 41–51

const Button: React.FC<ButtonProps> = ({
  asChild = false,
  className,
  size,
  variant,
  ref,
  ...props
}) => {
  const Comp = asChild ? Slot : 'button'
  return <Comp className={cn(buttonVariants({ className, size, variant }))} ref={ref} {...props} />
}

Subdomains

Calls

Frequently Asked Questions

What does Button() do?
Button() is a function in the supabase codebase.
What does Button() call?
Button() calls 1 function(s): cn.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free