Button() — ui Function Reference
Architecture documentation for the Button() function in button.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4a92b033_e3ea_abf5_f1b4_05d8976879d2["Button()"] 73ca083b_31a0_2e6a_de08_56e61803f9bb["button.tsx"] 4a92b033_e3ea_abf5_f1b4_05d8976879d2 -->|defined in| 73ca083b_31a0_2e6a_de08_56e61803f9bb style 4a92b033_e3ea_abf5_f1b4_05d8976879d2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/ui/button.tsx lines 38–51
function Button({
className,
variant = "default",
size = "default",
...props
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
return (
<ButtonPrimitive
data-slot="button"
className={cn(buttonVariants({ variant, size, className }))}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Button() do?
Button() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/button.tsx.
Where is Button() defined?
Button() is defined in apps/v4/registry/bases/base/ui/button.tsx at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free