Basic Usage
Attributes
The Bootstrap button color variant. Available options:
primary- Primary brand color (default)secondary- Secondary colorsuccess- Success state (green)danger- Danger/delete actions (red)warning- Warning state (yellow)info- Informational (blue)light- Light backgrounddark- Dark background
btn-{color} class.Examples
Basic Submit Button
Different Colors
With Icons
Disabled State
With Additional Attributes
Form with Cancel and Submit
Implementation Details
The Submit component:- Extends the Button component
- Automatically sets
type="submit" - Enables animation by default (
animate=true) - Applies the
animate-submitclass for click animations - Inherits all Bootstrap button styling from the parent Button component
- Type is always
submit(cannot be changed) - Animation is always enabled
- Optimized specifically for form submission scenarios
/src/Views/Components/Submit.php:12