x4js - v2.3.33
    Preparing search index...

    Interface CarouselProps

    interface CarouselProps {
        arrows?: boolean;
        attrs?: Record<string, string | number | boolean>;
        autoplay?: number;
        change?: EventCallback<EvChange>;
        cls?: string;
        disabled?: boolean;
        dom_events?: GlobalDOMEvents;
        dots?: boolean;
        existingDOM?: HTMLElement;
        flex?: number | boolean;
        height?: string | number;
        hidden?: boolean;
        id?: string;
        index?: number;
        items?: CarouselItem[];
        loop?: boolean;
        ns?: string;
        perView?: number;
        stretch?: boolean;
        style?: StyleProps;
        tag?: string;
        tooltip?: string;
        width?: string | number;
    }

    Hierarchy

    Index
    arrows?: boolean

    the buttons previous and next on its sides; true by default

    attrs?: Record<string, string | number | boolean>

    HTML attributes.

    autoplay?: number

    ms between two slides: it goes by itself (and loops), paused while the pointer is over it or the focus in it

    the user (arrows, dots, swipe, keys) or the autoplay went to another slide: value is its index; not by the code

    cls?: string

    Additional CSS classes.

    disabled?: boolean

    Component is initialy disabled.

    dom_events?: GlobalDOMEvents

    DOM event listeners.

    dots?: boolean

    a dot for each place, under the slides; true by default

    existingDOM?: HTMLElement

    Existing DOM element to wrap.

    flex?: number | boolean

    Enables flex layout (boolean) or sets flex-grow (number).

    height?: string | number

    Height (px or string like "50%").

    hidden?: boolean

    Component is initialy hidden.

    id?: string

    Element ID.

    index?: number

    the slide at the start (its index), 0 by default

    items?: CarouselItem[]

    the slides: components, or images

    loop?: boolean

    after the last slide comes the first one, and before the first the last

    ns?: string

    Namespace for SVG/MathML elements.

    perView?: number

    the slides seen side by side, 1 by default; a move goes one slide further

    stretch?: boolean
    style?: StyleProps

    Inline CSS styles.

    tag?: string

    HTML tag name (default: "div").

    tooltip?: string

    Tooltip text.

    width?: string | number

    Width (px or string like "50%" or "3em").