For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
1
Sponsor

Button

Actions with five visual variants, loading feedback, and icons.

Preview

Variants

Icons and sizes

Loading

Installation

$ pnpm dlx shadcn@latest add https://ui.ketyap.me/r/button.json

Usage

import { Button } from "@/components/ui/button";
 
<Button variant="primary" loading={saving}>
  Save changes
</Button>;

API Reference

PropValuesDefault
variantprimary, secondary, tertiary, ghost, destructivedefault (primary appearance)
sizedefault, compact, icon, icon-compact; existing sm, lg, icon-sm, icon-lginherited density
loadingbooleanfalse
activebooleanfalse
leadingIcon / trailingIconSVG component—
disabledbooleanfalse
densitydefault, compactSizeProvider
shaperounded, pillShapeProvider
renderBase UI render element or callbackbutton

Existing default, outline and link variants remain available. For a link, use render={<a href="/" />}. Base UI handles disabled interaction. Loading disables activation and preserves the label. Icon-only buttons need an accessible label.