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