Renders an accessible <button> by default, or a Radix Slot when
asChild is true (to compose with other clickable elements like
<Link> from next/link or @/i18n/navigation).
The element exposes data-slot, data-variant, and data-size
attributes so parent components can style descendants (e.g. a
<ButtonGroup> adjusting the radius of its children).
shadcn/ui
Buttonprimitive.Renders an accessible
<button>by default, or a RadixSlotwhenasChildistrue(to compose with other clickable elements like<Link>fromnext/linkor@/i18n/navigation).The element exposes
data-slot,data-variant, anddata-sizeattributes so parent components can style descendants (e.g. a<ButtonGroup>adjusting the radius of its children).