Loading Button
Displays a loading spinner in the button when a form is submitted.
Requires JS
This component requires the loading_button stimulus controller.
Caveats
Requires to be inside a form element with the tailwind group class.
API Reference
LoadingButton
| Name | Type | Default |
|---|---|---|
variant: | symbol | :default |
Visual style variant inherited from Button component. :default | :destructive | :outline | :secondary | :ghost | :link | ||
size: | symbol | :default |
Size variant inherited from Button component. :default | :sm | :lg | :icon | ||
type: | symbol | :submit |
attributes | keyword arguments | |
Examples
On This Page