Button
Buttons are used to trigger an action or event.
/* button-example.blade.php */
<x-button color="primary" content="__('Submit')" />
Component API
Prop | Description | Values |
---|---|---|
as | Change the element tag of the component | any |
content | Set the content of the component | any |
size | Change the font size of the component | Dependant on theme |
color | Change the color of the component | Dependant on theme |
hasDropdown | Add a dropdown icon to the button | Boolean |