ButtonVariantsAndSizes() — ui Function Reference
Architecture documentation for the ButtonVariantsAndSizes() function in button-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 30afb8c7_4a4a_831a_3fe8_1cc39d80fdce["ButtonVariantsAndSizes()"] 406a095d_2246_161a_f71b_085efd146c9e["button-example.tsx"] 30afb8c7_4a4a_831a_3fe8_1cc39d80fdce -->|defined in| 406a095d_2246_161a_f71b_085efd146c9e style 30afb8c7_4a4a_831a_3fe8_1cc39d80fdce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/button-example.tsx lines 21–88
function ButtonVariantsAndSizes() {
return (
<Example title="Variants & Sizes">
<div className="flex flex-wrap items-center gap-2">
<Button size="xs">Default</Button>
<Button size="xs" variant="secondary">
Secondary
</Button>
<Button size="xs" variant="outline">
Outline
</Button>
<Button size="xs" variant="ghost">
Ghost
</Button>
<Button size="xs" variant="destructive">
Destructive
</Button>
<Button size="xs" variant="link">
Link
</Button>
</div>
<div className="flex flex-wrap items-center gap-2">
<Button size="sm">Default</Button>
<Button size="sm" variant="secondary">
Secondary
</Button>
<Button size="sm" variant="outline">
Outline
</Button>
<Button size="sm" variant="ghost">
Ghost
</Button>
<Button size="sm" variant="destructive">
Destructive
</Button>
<Button size="sm" variant="link">
Link
</Button>
</div>
<div className="flex flex-wrap items-center gap-2">
<Button>Default</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="outline">Outline</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="link">Link</Button>
</div>
<div className="flex flex-wrap items-center gap-2">
<Button size="lg">Default</Button>
<Button size="lg" variant="secondary">
Secondary
</Button>
<Button size="lg" variant="outline">
Outline
</Button>
<Button size="lg" variant="ghost">
Ghost
</Button>
<Button size="lg" variant="destructive">
Destructive
</Button>
<Button size="lg" variant="link">
Link
</Button>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ButtonVariantsAndSizes() do?
ButtonVariantsAndSizes() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/button-example.tsx.
Where is ButtonVariantsAndSizes() defined?
ButtonVariantsAndSizes() is defined in apps/v4/registry/bases/base/examples/button-example.tsx at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free