Component usage
Add an image slider to your home page:Variables
Array of slide objects containing image and link information
Destination URL when the slide image is clicked
Type of link:
category- Link to a category pageproduct- Link to a product pageoffers- Link to offers pagepage- Link to a custom pageexternal_link- Link to external URLbrand- Link to a brand page
URL of the slide image
Alternative text for the image (for accessibility)
Sorting number for component placement (starts from zero)
When true, adds the
repeated-block class for styling multiple slider instancesExample
Slider attributes
Slider type - use
carousel for image slidersCenters the active slide
Enables automatic slide rotation
Shows pagination dots at the bottom
Unique identifier for the slider instance
Recommended image size
- Width: 1200 pixels
- Height: 300 pixels
- Format: JPG or WebP for best performance
Images are displayed with
object-contain to ensure the full image is visible without cropping. Use consistent image dimensions across all slides for best results.Configuration in twilight.json
This component is registered intwilight.json under features: