diff --git a/resources/css/showcase.css b/resources/css/showcase.css index 2d206739..f2c44559 100644 --- a/resources/css/showcase.css +++ b/resources/css/showcase.css @@ -456,3 +456,9 @@ .showcase-w-narrow { max-width: 320px; } + +/* forwards only class, style and wire:key to its wrapper, which the label and hint + share with the track — so the vertical demo's shared height is a class too. */ +.showcase-slider-vertical { + height: 256px; +} diff --git a/resources/views/showcase/sections/sliders.blade.php b/resources/views/showcase/sections/sliders.blade.php index 03f1c2dc..950cd6d4 100644 --- a/resources/views/showcase/sections/sliders.blade.php +++ b/resources/views/showcase/sections/sliders.blade.php @@ -1,67 +1,67 @@ @php $examples = [ 'Standard, discrete and disabled' => <<<'BLADE' -
+ -
+ BLADE, 'Sizes, with an inset icon from md' => <<<'BLADE' -
+ -
+ BLADE, 'Range and centred' => <<<'BLADE' -
+ -
+ BLADE, 'Vertical' => <<<'BLADE' {{-- M3 Expressive's second orientation. A vertical slider needs a height: it is on the wrapper, which the label and hint share. --}} -
- - - - - -
+ + + + + + + BLADE, 'Colours and value labels' => <<<'BLADE' -
+ -
+ BLADE, 'Bound with x-model' => <<<'BLADE' -
-
+ + -

volume:

-
-
+

volume:

+ + -

price:

-
-
+

price:

+ + BLADE, ]; @endphp -
-

Sliders

+ +

Sliders

-

+

<x-slider>: M3 Expressive's slider on native range inputs — standard, range and centred, horizontal or vertical, five sizes, ticks, value labels and an inset icon.

@foreach ($examples as $title => $code) @endforeach -
+