Action Button
A button component that displays a loading indicator when in a pending state.
Login
Usage
import { ActionButton } from "@/app/_components/ui/action-button";<ActionButton onClick={handleSubmit} pending={isLoading} disabled={isDisabled}> Send</ActionButton>Props
| Name | Type | Default | Description |
|---|---|---|---|
children* | ReactNode | - | The content of the button. |
className | string | - | Adds a custom class to the button. |
disabled | boolean | - | Disables the button. |
pending | boolean | - | Shows a pending state. |