Slider
The Slider component provides a reusable pattern for slider in the interface.
Using the slider item component
Single slide
Repeat slide
Button styling
Slider with Cards
Slider with Segment
API
| Parameter | Default | Type | Description |
|---|---|---|---|
|
autoSlide
|
true | integer|boolean|null | - |
|
peekSlides
|
false | boolean | - |
|
navigationHover
|
true | boolean | - |
|
ratio
|
16:9 | string | - |
|
repeatSlide
|
true | boolean | - |
|
type
|
slide | string | - |
|
heroStyle
|
false | boolean | - |
|
shadow
|
true | boolean | - |
|
customButtons
|
false | string|boolean | - |
|
arrowButtons
|
[] | array | - |
|
padding
|
0 | integer | - |
|
gap
|
2 | integer | - |
Subcomponents
Slider Item
-
| Parameter | Default | Type | Purpose |
|---|---|---|---|
|
title
|
string|boolean | - | |
|
text
|
string|boolean | - | |
|
cta
|
[] | array|boolean | - |
|
image
|
false | ComponentLibrary\Integrations\Image\ImageInterface|string|boolean | - |
|
video
|
false | string|boolean | - |
|
alt
|
?string | - | |
|
link
|
false | string|boolean | - |
|
linkDescription
|
string | - | |
|
layout
|
bottom | string | - |
|
theme
|
base | string | - |
|
containerColor
|
string | - | |
|
heroStyle
|
false | string|boolean | - |
|
textAlignment
|
string | - | |
|
overlay
|
none | string | - |
|
slot
|
Illuminate\Support\HtmlString|Illuminate\View\ComponentSlot|string|null | - | |
|
bottom
|
false | string|boolean | - |
|
classList
|
[] | array | Additional CSS classes added to the wrapping element. |
|
attributeList
|
[] | array | Additional HTML attributes added to the wrapping element. |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-slider--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-slider--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-slider--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-slider--color--primary
|
var(--color--primary) | color | - | Primary |
|
--c-slider--color--alpha
|
var(--color--alpha) | rgba | - | Used for overlays. Includes opacity — set both color and alpha together. |
|
--c-slider--font-family-heading
|
var(--font-family-heading) | font | - | Falls back to body font if not set. |
|
--c-slider--font-family-base
|
var(--font-family-base) | font | - | Body Font |
|
--c-slider--font-size-100
|
var(--font-size-100) | range | - | Base font size. |
|
--c-slider--color--alpha-contrast
|
var(--color--alpha-contrast) | color | - | Used for text and icons on alpha overlays. |
|
--c-slider--shadow-color
|
var(--shadow-color) | rgba | - | Shadow Color |
|
--c-slider--shadow-amount
|
var(--shadow-amount) | range | - | Multiplier for elevation shadows. 0 = none, 1 = default. |