Carousel region
Rootfunction
Renders the carousel region and pauses automatic rotation on focus or pointer entry without replacing its child nodes.
RootOptionsinterface
Inputs accepted by Carousel.Root in addition to the shared DOM host options.
Rotation policy
RotationControlfunction
Renders a button whose native click toggles the explicit paused state.
toggleRotationfunction
Flips paused and preserves activeId.
Slide and rotation state
InitialStateinterface
Initial Carousel values. activeId is required and paused defaults to true.
Stateinterface
The visible slide identity and explicit paused flag. Changing
pauseddoes not start a timer; an application scheduler must honor the flag.StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate Carousel state.
makeStatefunction
Creates hydrated Carousel state. activeId is required and paused defaults to true.
Slide content
Slidefunction
Renders one labelled slide, registers it when a collection is supplied, and toggles hidden from activeId.
SlideOptionsinterface
Inputs accepted by Carousel.Slide in addition to the shared DOM host options.
Slide controls
ControlOptionsinterface
Inputs accepted by Carousel.Control in addition to the shared DOM host options.
Nextfunction
Renders a button whose native click selects the next registered slide with wrapping enabled.
Previousfunction
Renders a button whose native click selects the previous registered slide with wrapping enabled.
Slide registration
makeCollectionvariable
Creates a scoped Collection for Carousel items.