diff --git a/demo/components.html b/demo/components.html index 9aad0624..4c2927ff 100644 --- a/demo/components.html +++ b/demo/components.html @@ -5,7 +5,7 @@ @@ -94,6 +94,34 @@

Conversion & Rounded button

+
+
+

Button link

+
+ Show a button as a simple link with an underline on hover. + The button has no background or padding. +
+
+
+
+
+
+
+

Input components

@@ -537,17 +565,17 @@

Long text

@@ -561,17 +589,17 @@

Short text

diff --git a/resources/views/components-preview.blade.php b/resources/views/components-preview.blade.php index a29f78a5..ac2c823e 100644 --- a/resources/views/components-preview.blade.php +++ b/resources/views/components-preview.blade.php @@ -79,6 +79,30 @@ +
+
+

Button link

+
+ Show a button as a simple link with an underline on hover. + The button has no background or padding. +
+
+
+ Link + Link disabled +
+
+ + Link + + + + Link disabled + + +
+
+

Input components

diff --git a/resources/views/components/button/link.blade.php b/resources/views/components/button/link.blade.php new file mode 100644 index 00000000..2108fb8c --- /dev/null +++ b/resources/views/components/button/link.blade.php @@ -0,0 +1,10 @@ +{{-- +The link button variant, the button doesn't have a background and padding. +Example: +``` +Something +``` +--}} +twMerge('inline-flex items-center gap-x-1.5 transition text-base text-primary no-underline justify-start w-fit cursor-pointer hover:underline disabled:opacity-50 disabled:cursor-not-allowed') }}> + {{ $slot }} + \ No newline at end of file diff --git a/resources/views/components/readmore/readmore.blade.php b/resources/views/components/readmore/readmore.blade.php index ff85b02d..9c79320a 100644 --- a/resources/views/components/readmore/readmore.blade.php +++ b/resources/views/components/readmore/readmore.blade.php @@ -19,7 +19,7 @@ ## Changing the line-clamp quantity and using custom read more/less buttons ``` - + Content @@ -41,18 +41,18 @@ attributes->twMerge('inline-flex peer-checked:hidden') }}> @slotdefault('more') - + @lang('Read more') - + @endslotdefault attributes->twMerge('hidden peer-checked:inline-flex') }}> @slotdefault('less') - + @lang('Read less') - + @endslotdefault