Phara UI v2.x

Button

A powerful and composable button component for your application.

Basic

Default component

Blade
<x-ui::button>Button</x-ui::button>
Variants

Use the variant prop to change the visual style of the button.

Blade
<x-ui::button variant="primary">Primary</x-ui::button>
Sizes

The default button size works great for most cases, but here are some additional size options for unique situations.

Blade
<x-ui::button size="lg">Large</x-ui::button>
With Icons

Automatically sized and styled icons for your buttons.

Blade
<x-ui::button variant="primary" icon="check">Save</x-ui::button>