ENGLISH·COURSE API
    Preparing search index...
    • shadcn/ui Button primitive.

      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).

      Parameters

      Returns Element

      <Button>Save</Button>
      
      <Button variant="destructive" onClick={onDelete}>Delete</Button>
      
      import { Link } from "@/i18n/navigation";

      <Button asChild>
      <Link href="/dashboard">Go to dashboard</Link>
      </Button>