The Button component triggers an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
Live Preview
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { Button } from "@/components/ui/button";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { Button } from "@/components/ui/button";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<Button
asChild{true}
isLoading{true}
leftIcon{/* value */}
>
<div>Content goes here</div>
</Button>
</div>
);
}