Slider

The Slider component provides a reusable pattern for slider in the interface.

Using the slider item component

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Read more

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Read more

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Single slide

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Repeat slide

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Button styling

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Base Layout

Here I could put some lorem ipsum text but I am too lazy to Google for one so I wrote all this instead. Woo!

Slider with Cards

Slider with Segment

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

API

Parameter Default Description
true If set to true, slider will auto slide with default delay. Can also receive an int to set delay in seconds
false Adds some padding to show a peek of next and previous slides
true Only show navigation when hovering over the slider
16:9 The size ratio of the slider
true Will allow the slide to repeat its cycle
slide -
false -
true -
false False will use default buttons, otherwise pass a string of the value of data-js-slider-buttons
[] -
0 Sets the amount of padding between slides
2 Sets the amount of gap between slides

Subcomponents

Child components for slider, including purpose and supported Blade parameters.

Slider Item

Blade directive: @slider__item()

A title for predefined layout

Parameter Default Type Purpose
string|boolean A title for predefined layout
string|boolean A text for predefined layout
[] array|boolean Adds button with a link, should conform with the button component specification (title, href)
false boolean|string|ImageInterface An url or path to an image to use as background for the segment
false boolean|string A video background for the segment
string Alternative text
false string|boolean Where the slide should link to
string A description of the link
bottom string Which layouts to use
base string The color palette to be used
string Determines what color the container and text should be
false string Gives the slide a hero like appearance with larger text
string Aligns the text in the container
none string Adds an overlay to the image
false boolean|string A slot for custom content, placed above the predefined layout
false boolean|string A slot for custom content, placed below the predefined layout
[] array Additional CSS classes added to the wrapping element.
[] array Additional HTML attributes added to the wrapping element.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--border-radius) range - Border Radius
var(--color--primary) color - Primary
var(--color--alpha) rgba - Used for overlays. Includes opacity — set both color and alpha together.
var(--font-family-heading) font - Falls back to body font if not set.
var(--font-family-base) font - Body Font
var(--font-size-100) range - Base font size.
var(--color--alpha-contrast) color - Used for text and icons on alpha overlays.
var(--shadow-color) rgba - Shadow Color
var(--shadow-amount) range - Multiplier for elevation shadows. 0 = none, 1 = default.