diff --git a/demo/components.html b/demo/components.html index 4c2927f..69fe6e2 100644 --- a/demo/components.html +++ b/demo/components.html @@ -5,7 +5,7 @@ @@ -605,6 +605,41 @@

Short text

+
+
+

Inline

+
+ This component is a variant for the read more / read less component. This content has a default line-clamp-1, + the buttons will show inside the text instead of below the text. +
+
+
+

Inline

+
+ +
+

+ + Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque, repellat incidunt placeat. Quo accusantium laudantium, adipisci culpa ad enim dolores molestiae alias ducimus officiis labore facilis modi provident cupiditate? Voluptates. + + +

+ +
+
+

Prose component

diff --git a/package.json b/package.json index f461345..3cdc54f 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@tailwindcss/forms": "^0.5.3", "@tailwindcss/typography": "^0.5.9", "@tailwindcss/vite": "^4.2.1", + "@tushargugnani/tailwind-group-peer-checked": "^1.0.0", "concurrently": "^9.2.1", "laravel-vite-plugin": "^2.0.0", "tailwindcss": "^4.2.1", diff --git a/resources/views/components-preview.blade.php b/resources/views/components-preview.blade.php index ac2c823..6f47dec 100644 --- a/resources/views/components-preview.blade.php +++ b/resources/views/components-preview.blade.php @@ -393,6 +393,21 @@
+
+
+

Inline

+
+ This component is a variant for the read more / read less component. This content has a default line-clamp-1, + the buttons will show inside the text instead of below the text. +
+
+
+

Inline

+ + Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque, repellat incidunt placeat. Quo accusantium laudantium, adipisci culpa ad enim dolores molestiae alias ducimus officiis labore facilis modi provident cupiditate? Voluptates. + +
+

Prose component

diff --git a/resources/views/components/readmore/inline.blade.php b/resources/views/components/readmore/inline.blade.php new file mode 100644 index 0000000..1f9a14c --- /dev/null +++ b/resources/views/components/readmore/inline.blade.php @@ -0,0 +1,61 @@ +{{-- +Read more/less component using the Tailwind CSS `peer` utility. + +## Notes +- **Clamping** The default of line-clamp-1 is used. It is recommended that you keep it line-clamp-1 +- **Buttons** You can't use