WireUI
Components Customization

You can disable, rename or extend all the WireUI components.

To perform customizations, you must publish the WireUI config. Run the command:

php artisan vendor:publish --tag='wireui.config'

Then, open the file config/wireui.php and rename the alias key with your preferred name.

After saving, you must clear the View Cache by running the following command:

php artisan view:clear
Tip: It's advisable to run this command always after you make changes.

The example below shows some customizations:


1 
2...
3'components' => [
4 // rename the component
5 'input' => [
6 'class' => Components\Input::class,
7 'alias' => 'form.input', // rename this alias
8 ],
9 
10 // disable the component
11 // 'textarea' => [
12 // 'class' => Components\Textarea::class,
13 // 'alias' => 'textarea',
14 // ],
15 
16 // extends the component
17 'button' => [
18 'class' => App\Views\Components\MyButton::class,
19 'alias' => 'button',
20 ],
21]
22...