Button

PreviousNext

Displays a button or a component that looks like a button.

Docs
bunduicomponent

Preview

Loading preview…
examples/components/button/loading-with-icon/page.tsx
import { Button } from "@/components/ui/button";
import { LoaderCircleIcon } from "lucide-react";

export default function ButtonLoading() {
  return (
    <Button disabled size="icon">
      <LoaderCircleIcon className="animate-spin" />
    </Button>
  );
}

Installation

npx shadcn@latest add @bundui/button-loading-with-icon

Usage

import { ButtonLoadingWithIcon } from "@/components/button-loading-with-icon"
<ButtonLoadingWithIcon />