Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt

Use this file to discover all available pages before exploring further.

Carousel

Carousel renders a slide viewer with previous and next controls when more than one item exists.
ui.carousel({
  {
    title = 'Lua first',
    description = 'Build UI by describing nodes in Lua.'
  },
  {
    title = 'Motion ready',
    description = 'AnimatePresence powers enter and exit transitions.'
  }
})

API

ui.carousel(items, props?)

Item shape

FieldTypeDescription
title or labelstringSlide title. Defaults to Slide N.
description or contentstringSlide body.
imagestringOptional image URL.
String items are accepted and become the slide title.

Props

PropDescription
viewportClassName, contentClassNameMain slide area classes.
titleClassNameSlide title class.
descriptionClassNameSlide description class.
controlClassNameShared previous/next button class.
previousClassNamePrevious button class.
nextClassNameNext button class.
className, styleCommon LUI styling props.