Omnira Docs v1.0.0

Section reference › Showcase & media

Card slider "type": "slider"

A horizontal row of cards that visitors swipe or scroll with arrow buttons. Three styles: content cards, image tiles or quote cards. Use it for blog posts, destinations, rooms, products or reviews when a grid would be too long.

Example of the slider section
The example below, rendered with placeholder images.

Example#

Paste this into the sections list of a page file:

JSON
{
  "type": "slider",
  "eyebrow": "Journal",
  "title": "Latest from the blog",
  "items": [
    {
      "image": "placeholder",
      "label": "Guides",
      "title": "How to plan a kitchen renovation without losing your mind",
      "text": "A realistic timeline, budget and checklist from our project managers.",
      "meta": "Mar 4, 2026 · 6 min read",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "Materials",
      "title": "Oak, walnut or ash? Choosing the right wood floor",
      "text": "How each one wears, what it costs and where it works best.",
      "meta": "Feb 18, 2026 · 4 min read",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "Projects",
      "title": "Inside a 1920s townhouse, restored room by room",
      "text": "Original details kept, modern comfort added.",
      "meta": "Feb 2, 2026 · 8 min read",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "Tips",
      "title": "Five small changes that make a rental feel like home",
      "text": "No drilling, no deposit worries.",
      "meta": "Jan 21, 2026 · 3 min read",
      "link": "#"
    }
  ]
}

Options#

OptionTypeDefaultDescription
eyebrowstring—Small label shown above the title. The heading is always left-aligned in this section.
titlestring (HTML allowed)—Section heading. You can use <em> or <br> inside it. The heading is always left-aligned in this section.
textstring—Short intro paragraph under the title. The heading is always left-aligned in this section.
itemsarray—The slides. Which fields are used depends on the style; see the "items" fields.
stylestringcardsSlide design. See the variants below.
Values: cards | images | quotes
labelstringthe title, or "Carousel"Name of the slider read out by screen readers.

Also accepts the options every section accepts: id, tone, padding, fluid, class, hidden.

Fields of each entry in items#

OptionTypeDefaultDescription
imagestring—Photo (styles "cards" and "images").
titlestring—Slide title (styles "cards" and "images").
labelstring—Small tag: a badge on "cards", a line above the title on "images".
textstring—Paragraph on "cards"; the review text on "quotes".
metastring | array—"cards" only: small line at the bottom, e.g. "Mar 4, 2026 · 6 min read". An array is joined with " · ".
linkstring—Where the slide links to ("cards" and "images"). "href" also works.
quotestring—"quotes" only: used when "text" is empty.
namestring—"quotes" only: reviewer name.
rolestring—"quotes" only: reviewer role or company.
avatarstring—"quotes" only: small round portrait.
ratingnumber—"quotes" only: stars out of 5. Without it a quote icon is shown.

Variants and styles#

cards#

Default. Photo, badge, title, text and a meta line: good for blog posts, rooms or tours.

JSON
{
  "type": "slider",
  "eyebrow": "Journal",
  "title": "Latest from the blog",
  "items": [
    {
      "image": "placeholder",
      "label": "Guides",
      "title": "How to plan a kitchen renovation without losing your mind",
      "text": "A realistic timeline, budget and checklist from our project managers.",
      "meta": "Mar 4, 2026 · 6 min read",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "Materials",
      "title": "Oak, walnut or ash? Choosing the right wood floor",
      "text": "How each one wears, what it costs and where it works best.",
      "meta": "Feb 18, 2026 · 4 min read",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "Projects",
      "title": "Inside a 1920s townhouse, restored room by room",
      "text": "Original details kept, modern comfort added.",
      "meta": "Feb 2, 2026 · 8 min read",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "Tips",
      "title": "Five small changes that make a rental feel like home",
      "text": "No drilling, no deposit worries.",
      "meta": "Jan 21, 2026 · 3 min read",
      "link": "#"
    }
  ]
}

images#

Tall photo tiles with the title on the image, four per view on large screens: good for destinations or collections.

JSON
{
  "type": "slider",
  "style": "images",
  "tone": "alt",
  "eyebrow": "Destinations",
  "title": "Where will you go next?",
  "items": [
    {
      "image": "placeholder",
      "label": "12 tours",
      "title": "Iceland",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "9 tours",
      "title": "Japan",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "15 tours",
      "title": "Italy",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "7 tours",
      "title": "Morocco",
      "link": "#"
    },
    {
      "image": "placeholder",
      "label": "11 tours",
      "title": "Peru",
      "link": "#"
    }
  ]
}

quotes#

Review cards with stars, text and the reviewer: a swipeable alternative to the testimonials grid.

JSON
{
  "type": "slider",
  "style": "quotes",
  "eyebrow": "Reviews",
  "title": "What our guests say",
  "items": [
    {
      "rating": 5,
      "text": "The room was spotless, the staff remembered our names and breakfast on the terrace was the highlight of our trip.",
      "name": "Laura & James",
      "role": "Stayed in June",
      "avatar": "placeholder"
    },
    {
      "rating": 5,
      "text": "Quiet, stylish and five minutes from the old town. We have already booked again for next spring.",
      "name": "Tomás R.",
      "role": "Stayed in May",
      "avatar": "placeholder"
    },
    {
      "rating": 4,
      "text": "Lovely spa and a very comfortable bed. Parking is tight, so arrive early.",
      "name": "Aisha K.",
      "role": "Stayed in April",
      "avatar": "placeholder"
    },
    {
      "rating": 5,
      "text": "Perfect for a weekend away. The concierge found us a table at the best restaurant in town.",
      "name": "Mark D.",
      "role": "Stayed in March",
      "avatar": "placeholder"
    }
  ]
}

Tips#

  • Use at least 4 slides so there is something to scroll to on large screens.
  • The heading is always left-aligned with the arrows on the right.

Editing it in the HTML files#

Each slide is a .slider-item inside .slider-track. The track scrolls natively (swipe, trackpad or the arrow buttons in .slider-arrows), so you can add or remove slides freely.

Where it's used#

Open these pages in template/ to see it working:

  • Creative Agency: template/creative-agency/culture.html (source src/demos/creative-agency/pages/culture.json)
  • Corporate: template/corporate/index.html (source src/demos/corporate/pages/index.json)
  • Finance: template/finance/index.html (source src/demos/finance/pages/index.json)
  • Law Firm: template/law-firm/testimonials.html (source src/demos/law-firm/pages/testimonials.json)
  • SaaS Product: template/saas/home-2.html (source src/demos/saas/pages/home-2.json)
  • Mobile App: template/mobile-app/feature-habit-streaks.html (source src/demos/mobile-app/pages/feature.json)
  • Tech Conference: template/conference/index.html (source src/demos/conference/pages/index.json)
  • Restaurant: template/restaurant/home-2.html (source src/demos/restaurant/pages/home-2.json)
  • Coffee Shop: template/cafe/index.html (source src/demos/cafe/pages/index.json)
  • Hotel & Resort: template/hotel/home-2.html (source src/demos/hotel/pages/home-2.json)
  • Wedding: template/wedding/index.html (source src/demos/wedding/pages/index.json)
  • Gym & Fitness: template/gym/index.html (source src/demos/gym/pages/index.json)
  • Yoga Studio: template/yoga/home-2.html (source src/demos/yoga/pages/home-2.json)
  • Dental Clinic: template/dental/index.html (source src/demos/dental/pages/index.json)
  • Pet Care: template/pet-care/home-2.html (source src/demos/pet-care/pages/home-2.json)
  • Construction: template/construction/index.html (source src/demos/construction/pages/index.json)
  • Car Dealer: template/car-dealer/home-2.html (source src/demos/car-dealer/pages/home-2.json)
  • Travel Agency: template/travel/home-2.html (source src/demos/travel/pages/home-2.json)
  • Photographer: template/photography/album-sofia-daniel-lakeside.html (source src/demos/photography/pages/album.json)
  • Portfolio: template/portfolio/index.html (source src/demos/portfolio/pages/index.json)
  • Music Festival: template/music-festival/gallery.html (source src/demos/music-festival/pages/gallery.json)
  • Fashion Store: template/fashion-store/index.html (source src/demos/fashion-store/pages/index.json)