UI Components
Button
You can easily customize any button using standard css
classes and icon using the class:icon
attribute.
# Basic usage
# Outline buttons
# Flat buttons
# Button as link
# Size variants
# Rounded corner
# Button with icon
# Circle buttons
# Circle buttons - outline
# Circle buttons - flat
# With spinner
Add loading indicators to your buttons with the
spinner
attribute. For standalone buttons, simply add the spinner
attribute to display a loading state during wire:click actions. In forms, you can specify which action triggers the spinner by passing the action name to the spinner
attribute - this automatically shows the loading state during form submission.
<x-button wire:click="delete" label="Delete" spinner /> <form wire:submit="create"> <x-button label="submit" spinner="create" /></form>