Skip to content

Commit 6f4bac4

Browse files
committed
Refactor to x-green component
1 parent 5d5c6c3 commit 6f4bac4

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">{{ $slot }}
2+
</span>

resources/views/livewire/documentation/colors.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>
77
You can customize default colors for all WireUI components: Notifications, dialogs, inputs, selects, buttons...
88
<br/>
9-
You just need to extend Tailwind Colors setting in <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">tailwind.config.js</span> adding preferred ones. <br>
9+
You just need to extend Tailwind Colors setting in <x-green>tailwind.config.js</x-green> adding preferred ones. <br>
1010
</p>
1111
</div>
1212

resources/views/livewire/documentation/get-started.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<x-code language="html" :code="$directiveExample" />
6868

69-
<p>3. Add the following settings to your Tailwindcss config file, <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">tailwind.config.js</span>:</p>
69+
<p>3. Add the following settings to your Tailwindcss config file, <x-green>tailwind.config.js</x-green>:</p>
7070
<x-code language="js" :code="$tailwindConfigExample" />
7171
</div>
7272
</div>

resources/views/livewire/documentation/inputs.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
</p>
2929
<p>
30-
You can set the attribute <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">wire:model</span> to automatically have the attributes <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">id</span> set to the MD5 of the model and <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">name</span> to the exact model. You must NOT pass the attributes id and name for this to work.
30+
You can set the attribute <x-green>wire:model</x-green> to automatically have the attributes <x-green>id</x-green> set to the MD5 of the model and <x-green>name</x-green> to the exact model. You must NOT pass the attributes id and name for this to work.
3131
</p>
3232
<x-code language="html" :code="$wireModelExample" />
3333
</div>

resources/views/livewire/documentation/textarea.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
</p>
1717
<p>
18-
You can set the attribute <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">wire:model</span> to automatically have the attributes <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">id</span> set to the MD5 of the model and <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">name</span> to the exact model. You must NOT pass the attributes id and name for this to work.
18+
You can set the attribute <x-green>wire:model</x-green> to automatically have the attributes <x-green>id</x-green> set to the MD5 of the model and <x-green>name</x-green> to the exact model. You must NOT pass the attributes id and name for this to work.
1919
</p>
2020
<x-code language="html" :code="$wireModelExample" />
2121
</div>

resources/views/livewire/documentation/troubleshooting.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
<x-section.title href="#tailwind-forms" title="Tailwind-forms" />
2727

2828
<div class="mt-5 prose text-gray-500 max-w-none">
29-
<p id="installing-package">If you have encountered the error <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">TypeError: require(...) is not a function</span>, you must update your Tailwind-Forms to
30-
<span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">"^0.3.0"</span>. This is often the case with Laravel Breeze installation.
29+
<p id="installing-package">If you have encountered the error <x-green>TypeError: require(...) is not a function</x-green>, you must update your Tailwind-Forms to
30+
<x-green>"^0.3.0"</x-green>. This is often the case with Laravel Breeze installation.
3131
</p>
3232
<p>Error:</p>
3333

3434
<x-code-no-copy language="shell" :code="$tailwindFormsError" />
3535
<p>Solution:</p>
3636

37-
<p>Modify your Tailwind-forms version and then, run <span class="px-2 py-2 font-mono text-sm font-semibold text-gray-900 bg-teal-100 rounded-md">npm update</span> command.</p>
37+
<p>Modify your Tailwind-forms version and then, run <x-green>npm update</x-green> command.</p>
3838
<x-code language="js" :code="$tailwindFormsUpdate" />
3939
</div>
4040
</div>

0 commit comments

Comments
 (0)