Button() — ui Function Reference
Architecture documentation for the Button() function in button.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 67271a36_d7b3_abd5_e3a5_3c35388f5afa["Button()"] 94ecf799_a1bf_17e8_d88e_dcfee29c7f62["button.tsx"] 67271a36_d7b3_abd5_e3a5_3c35388f5afa -->|defined in| 94ecf799_a1bf_17e8_d88e_dcfee29c7f62 style 67271a36_d7b3_abd5_e3a5_3c35388f5afa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/button.tsx lines 44–57
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/examples/base/ui/button.tsx.
Where is Button() defined?
Button() is defined in apps/v4/examples/base/ui/button.tsx at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free