Slider
Using the slider item component
By using the slider item component you can create a slider with ease
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="680c34f564efd5.15242712" data-uid="680c34f564f15">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="680c34f564f58">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f564fe4">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="680c34f565062">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f5650be">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-center c-slider__item--overlay-none c-slider__item--hero" data-uid="680c34f56455a">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f5645f4">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (promoted) (hasSeenH1) original: h2 -->
<h1 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f5646ac">
Base Layout
</h1>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f5646e7">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
<a class="c-button c-slider__item__cta c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read more" data-uid="680c34f564745">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--arrow-forward c-icon--material c-icon--material-arrow_forward material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="arrow_forward" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f564859">
</span>
</span>
<span class="c-button__label-text ">
Read more
</span>
</span> </a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="680c34f5648be">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f56490c">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f564980">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f5649b1">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
<a class="c-button c-slider__item__cta c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read more" data-uid="680c34f5649e8">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--arrow-forward c-icon--material c-icon--material-arrow_forward material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="arrow_forward" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f564a22">
</span>
</span>
<span class="c-button__label-text ">
Read more
</span>
</span> </a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--transparent c-slider__item--layout-center c-slider__item--overlay-light" data-uid="680c34f564a6a">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f564ab4">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f564b21">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f564b50">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--lightest c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="680c34f564b89">
<!-- video.blade.php -->
<video class="c-video c-slider__item__background--video" width="600" height="300" muted autoplay loop="1" data-uid="680c34f564c0e">
<source class="c-video__source" src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
<br />
<b>Warning</b>: The parameter <b>"isWarning"</b> is not recognized in the component <b>"notice"</b> in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>244</b><br />
<!-- notice.blade.php -->
<div class="c-notice c-notice--info" id="680c34f564c87" data-uid="680c34f564c8f" aria-labelledby="notice__text__680c34f564c87">
<!-- notice__ico -->
<!-- notice__title -->
<!-- notice__text -->
<span id="notice__text__680c34f564c87" for="" class="c-notice__message">
This component is not supported by your browser.
</span>
</div>
</video>
<!-- Play/pause button -->
<button class="c-button c-slider__item__background--video__play__btn c-button__filled c-button__filled--secondary c-button--md c-button--icon-only" target="_top" js-video-control="" aria-label="play_arrow" type="button" data-uid="680c34f564cd7">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--play-arrow c-icon--material c-icon--material-play_arrow material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="play_arrow" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f564d14">
</span>
</span>
</span> </button> <!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f564d69">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f564dd6">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f564e06">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-center c-slider__item--overlay-none" data-uid="680c34f564e3f">
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f564e71">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f564e9e">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
])
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'darkest',
'image' => 'https://picsum.photos/1080/720',
'heroStyle' => true,
'cta' => [
'title' => 'Read more',
'href' => 'https://www.helsingborg.se',
]
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'darkest',
'image' => 'https://picsum.photos/1080/720',
'cta' => [
'title' => 'Read more',
'href' => 'https://www.helsingborg.se',
]
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'transparent',
'image' => 'https://picsum.photos/1080/720',
'overlay' => 'light',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'lightest',
'image' => 'https://picsum.photos/1080/720',
'video' => 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'containerColor' => 'darkest',
'layout' => 'center',
])
@endslider__item
@endslider
Single slide
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="680c34f5653908.34361984" data-uid="680c34f5653a4">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="680c34f565405">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f565468">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="680c34f5654e2">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f565544">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--transparent c-slider__item--layout-center c-slider__item--overlay-none c-slider__item--hero" data-uid="680c34f5651ab">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f565225">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/720/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f5652e4">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f565336">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
])
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'transparent',
'image' => 'https://picsum.photos/720/720',
'heroStyle' => true
])
@endslider__item
@endslider
Repeat slide
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="680c34f5689549.80876937" data-uid="680c34f568963">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="680c34f56899e">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f5689db">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="680c34f568a31">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f568a67">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--none c-slider__item--text-align-center c-slider__item--layout-center c-slider__item--overlay-dark c-slider__item--hero" data-uid="680c34f565630">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f5656a6">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f565764">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f5657b6">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--theme c-slider__item--layout-bottom c-slider__item--overlay-light" data-uid="680c34f565815">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f565884">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f565930">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f56597e">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--none c-slider__item--layout-center c-slider__item--overlay-light" data-uid="680c34f5659e5">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f565a57">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f565b01">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f565b59">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--white c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="680c34f565bba">
<!-- video.blade.php -->
<video class="c-video c-slider__item__background--video" width="600" height="300" muted autoplay loop="1" data-uid="680c34f565c22">
<source class="c-video__source" src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
<br />
<b>Warning</b>: The parameter <b>"isWarning"</b> is not recognized in the component <b>"notice"</b> in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>244</b><br />
<!-- notice.blade.php -->
<div class="c-notice c-notice--info" id="680c34f56861d" data-uid="680c34f56862a" aria-labelledby="notice__text__680c34f56861d">
<!-- notice__ico -->
<!-- notice__title -->
<!-- notice__text -->
<span id="notice__text__680c34f56861d" for="" class="c-notice__message">
This component is not supported by your browser.
</span>
</div>
</video>
<!-- Play/pause button -->
<button class="c-button c-slider__item__background--video__play__btn c-button__filled c-button__filled--secondary c-button--md c-button--icon-only" target="_top" js-video-control="" aria-label="play_arrow" type="button" data-uid="680c34f56869e">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--play-arrow c-icon--material c-icon--material-play_arrow material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="play_arrow" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f5686e6">
</span>
</span>
</span> </button> <!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f56874c">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f5687c3">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f5687f8">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--white c-slider__item--layout-center c-slider__item--overlay-none" data-uid="680c34f568839">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f568882">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f5688f2">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f568923">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
'repeatSlide' => true,
])
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'none',
'overlay' => 'dark',
'textAlignment' => 'center',
'image' => 'https://picsum.photos/1080/720',
'heroStyle' => true
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'overlay' => 'light',
'containerColor' => 'theme',
'image' => 'https://picsum.photos/1080/720',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'none',
'image' => 'https://picsum.photos/1080/720',
'overlay' => 'light',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'white',
'image' => 'https://picsum.photos/1080/720',
'video' => 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'containerColor' => 'white',
'layout' => 'center',
'image' => 'https://picsum.photos/1080/720',
])
@endslider__item
@endslider
Button styling
Styling the buttons
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow c-slider--has-stepper" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="680c34f568d292.21825676" data-uid="680c34f568d35">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="680c34f568d6e">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f568dab">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__outlined c-button__outlined--secondary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="680c34f568def">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f568e44">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-center c-slider__item--overlay-none" data-uid="680c34f568af1">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f568b36">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f568ba5">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f568bd5">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item splide__slide u-color__bg--darkest c-slider__item--layout-bottom c-slider__item--overlay-none" data-uid="680c34f568c0c">
<!-- image.blade.php -->
<figure class="c-image c-slider__item__image c-image--cover" data-a11y-error="Alt text is missing" data-uid="680c34f568c51">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/1080/720"
alt=""
/> </figure>
<div class="c-slider__item__container">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-slider__item__heading c-typography__variant--h2" data-uid="680c34f568ccb">
Base Layout
</h2>
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-slider__item__body c-typography__variant--body" data-uid="680c34f568cfb">
Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!
</p>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => true,
'autoSlide' => false,
'arrowButtons' => array("color" => "secondary", "style" => "outlined")
])
@slider__item([
'image' => 'https://picsum.photos/1080/720',
'title' => 'Base Layout',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'center',
'containerColor' => 'darkest'
])
@endslider__item
@slider__item([
'title' => 'Base Layout',
'image' => 'https://picsum.photos/1080/720',
'text' => 'Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!',
'layout' => 'bottom',
'containerColor' => 'darkest'
])
@endslider__item
@endslider
Slider with Cards
<div class="c-slider c-slider--16-9 c-slider__navigation--hover c-slider--shadow" data-slides-per-page="4" data-step="0" js-slider="0" js-slider-index="0" data-slider-loop="1" data-slider-gap="2" id="680c34f56979f7.01065396" data-uid="680c34f5697ab">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="680c34f5697e2">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f56981b">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="680c34f56985b">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f569890">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="680c34f569141">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="680c34f568efc">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="680c34f568f72">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/0/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="680c34f5690ab">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="680c34f569074">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="680c34f56901d">
Card #0
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="680c34f5690fc">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="680c34f569360">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="680c34f569187">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="680c34f5691df">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/1/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="680c34f5692dc">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="680c34f5692ab">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="680c34f569278">
Card #1
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="680c34f569320">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="680c34f569565">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="680c34f5693a3">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="680c34f5693f7">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/2/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="680c34f5694e2">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="680c34f5694b2">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="680c34f569481">
Card #2
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="680c34f569525">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-center" data-uid="680c34f569770">
<div class="c-slider__item__container">
<!-- card.blade.php -->
<a class="c-card u-color__text--info c-card--focus-inset c-card--has-image c-card--action c-card--ratio-16-9" href="https://www.helsingborg.se" data-uid="680c34f5695a5">
<div class="c-card__image-container">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--cover" data-uid="680c34f569602">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/3/267"
alt="ALT"
/> </figure>
</div>
<div class="c-card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="680c34f5696f6">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="680c34f5696bd">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="680c34f56968c">
Card #3
</h2>
</div>
</div> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="680c34f569735">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p> </div>
</a>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => false,
'autoSlide' => false,
'attributeList' => [
'data-slides-per-page' => 4
],
])
@for ($i = 0; $i < 4; $i++)
@slider__item([
'layout' => 'center',
'heroStyle' => false,
'classList' => ['c-slider__item--post']
])
@card([
'link' => 'https://www.helsingborg.se',
'image' => ['src' => "https://picsum.photos/seed/$i/267", 'alt' => 'ALT'],
'heading' => "Card #$i",
'content' => "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
'classList' => ['u-color__text--info', 'c-card--focus-inset'],
])
@endcard
@endslider__item
@endfor
@endslider
Slider with Segment
<div class="c-slider c-slider--post c-slider--16-9 c-slider__navigation--hover c-slider--shadow" data-slides-per-page="1" data-step="0" js-slider="0" js-slider-index="0" data-slider-gap="2" id="680c34f56a4fb3.90308790" data-uid="680c34f56a507">
<div class="splide__arrows c-slider__arrows">
<button class="c-button splide__arrow splide__arrow--prev c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_left" type="button" data-uid="680c34f56a53f">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-left c-icon--material c-icon--material-keyboard_arrow_left material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_left" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f56a57e">
</span>
</span>
</span> </button> <button class="c-button splide__arrow splide__arrow--next c-button__filled c-button__filled--primary c-button--md c-button--icon-only" target="_top" aria-label="keyboard_arrow_right" type="button" data-uid="680c34f56a5bf">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-icon ">
<!-- icon.blade.php -->
<span class="c-icon c-icon--keyboard-arrow-right c-icon--material c-icon--material-keyboard_arrow_right material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" aria-hidden="false" material-symbol="keyboard_arrow_right" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="680c34f56a5f4">
</span>
</span>
</span> </button> </div>
<div class="c-slider__container splide__track">
<div class="c-slider__inner splide__list" js-slider-inner>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="680c34f569c5b">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="680c34f569961">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="680c34f569a58">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="680c34f5699c7">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/0/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="680c34f569c19">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="680c34f569b6c">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="680c34f569b3c">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="680c34f569b09">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="680c34f569ad4">
Card #0
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="680c34f569b9c">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="680c34f569bd8">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="680c34f569f3c">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="680c34f569ca6">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="680c34f569d56">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="680c34f569cf0">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/1/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="680c34f569f00">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="680c34f569e4c">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="680c34f569e1a">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="680c34f569dea">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="680c34f569db8">
Card #1
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="680c34f569e7b">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="680c34f569eb5">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="680c34f56a206">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="680c34f569f7f">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="680c34f56a020">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="680c34f569fc3">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/2/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="680c34f56a1c8">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="680c34f56a111">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="680c34f56a0e3">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="680c34f56a0a1">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="680c34f56a073">
Card #2
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="680c34f56a13f">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="680c34f56a179">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
<!-- slider__item.blade.php -->
<section class="c-slider__item c-slider__item--post splide__slide c-slider__item--layout-bottom" data-uid="680c34f56a4cb">
<div class="c-slider__item__container">
<!-- segment.blade.php -->
<section class="c-segment c-segment--slider c-segment--size-sm c-segment--card c-segment--text-dark c-segment--height-content c-segment--text-default c-segment--alignment-top c-segment--reverse" data-observe-resizes="" data-uid="680c34f56a24e">
<a class="c-link c-segment__image-container" id="" aria-label="Visit: https://www.helsingborg.se" href="https://www.helsingborg.se" target="_top" data-uid="680c34f56a2fb">
<!-- image.blade.php -->
<figure class="c-image c-segment__image" data-a11y-error="Alt text is missing" data-uid="680c34f56a297">
<img
loading="lazy"
class="c-image__image"
src="https://picsum.photos/seed/3/1400"
alt=""
/> </figure>
</a>
<div class="c-segment__content">
<!-- card.blade.php -->
<div class="c-card c-segment__content-card c-card--ratio-16-9" data-uid="680c34f56a490">
<!-- group.blade.php -->
<div class="c-group c-group--horizontal c-group--justify-content-space-between c-group--gap-2 c-group--align-items-start" data-uid="680c34f56a3e4">
<!-- group.blade.php -->
<div class="c-group u-width--100 c-group--vertical" data-uid="680c34f56a3b5">
<!-- typography.blade.php (hasSeenH1) original: h2 -->
<h2 class="c-typography c-segment__title u-margin__bottom--1 u-margin__top--0 c-typography__variant--h3" data-uid="680c34f56a386">
<a class="c-link" id="" href="https://www.helsingborg.se" target="_top" data-uid="680c34f56a354">
Card #3
</a>
</h2>
</div>
</div>
<!-- typography.blade.php (hasSeenH1) original: div -->
<div class="c-typography c-segment__text c-typography__variant--div" data-uid="680c34f56a412">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="c-segment__buttons">
<a class="c-button c-button__filled c-button__filled--default c-button--md" target="_top" type="button" href="https://www.helsingborg.se" aria-label="Read More" data-uid="680c34f56a456">
<span class="c-button__label"> <span class="c-button__loader"></span>
<span class="c-button__label-text ">
Read More
</span>
</span> </a> </div>
<div class="c-segment__inner-blocks u-hide-empty"><InnerBlocks /></div>
</div>
</div>
</section>
</div>
</section>
</div>
</div>
</div>
@slider([
'showStepper' => false,
'autoSlide' => false,
'repeatSlide' => false,
'attributeList' => [
'data-slides-per-page' => 1
],
'classList' => ['c-slider--post']
])
@for ($i = 0; $i < 4; $i++)
@slider__item([
'classList' => ['c-slider__item--post']
])
@segment([
'layout' => 'card',
'title' => "Card #$i",
'tags' => false,
'meta' => false,
'image' => "https://picsum.photos/seed/$i/1400",
'buttons' => [['text' => 'Read More', 'href' => 'https://www.helsingborg.se']],
'content' => "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
'classList' => ['c-segment--slider', 'c-segment--size-sm'],
'containerAware' => true,
'reverseColumns' => true
])
@endsegment
@endslider__item
@endfor
@endslider
Blade component parameters
Key | Default value | Type | Available values | Description |
showStepper | true | boolean | - | Option to hide or show stepper. |
autoSlide | true | boolean | - | If set to true, slider will auto slide with default delay. Can also receive an int to set delay in seconds |
peekSlides | false | boolean | - | Adds some padding to show a peek of next and previous slides |
navigationHover | true | boolean | - | Only show navigation when hovering over the slider |
ratio | 16:9 | string | - | The size ratio of the slider |
repeatSlide | true | boolean | - | Will allow the slide to repeat its cycle |
heroStyle | false | boolean | - | - |
shadow | true | boolean | - | - |
customButtons | false | boolean | - | - |
arrowButtons | {"color":"primary","style":"filled"} | array | - | - |
padding | 0 | integer | - | Sets the amount of padding between slides |
gap | 2 | integer | - | Sets the amount of gap between slides |
id | string | - | The DOM id of the component. | |
classList | [] | array | - | Array containing wrapping classes array |
attributeList | [] | array | - | Array containing keys and values rendered as attributes |
containerAware | false | boolean | true/false | Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component. |