<button> element with Bootstrap styling and optional animation effects.
Basic Usage
Attributes
The button type attribute. Common values:
button- Standard buttonsubmit- Form submissionreset- Form reset
The Bootstrap button color variant. Available options:
primary- Primary brand colorsecondary- Secondary colorsuccess- Success state (green)danger- Danger/delete actions (red)warning- Warning state (yellow)info- Informational (blue)light- Light backgrounddark- Dark backgroundlink- Link-styled button
btn-{color} class.Enable animation effect on button click. When
true, applies the animate-submit class.Examples
Button Types
Color Variants
With Animation
Additional HTML Attributes
You can pass any standard HTML attributes:Disabled Button
With Icons
Implementation Details
The Button component:- Renders a
<button>element with Bootstrap’sbtnandbtn-{color}classes - Supports the
animate-submitclass for click animations whenanimateis true - Allows all standard HTML button attributes via attribute merging
- Type attribute is only rendered when explicitly provided
/src/Views/Components/Button.php:17