CarouselItem

Data Display
stable

A single slide inside OrigamCarousel — wraps OrigamWindowItem and OrigamImg, forwarding all image and window-item props.

Structure

Anatomie

Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.

Anatomy of OrigamCarouselItemSchematic of the CarouselItem component with 3 numbered internal parts. origam-img (src, cover, srcset, alt…) #content slot (overlay) 1 2 3 ① root = origam-window-item; height: inherit flows from the parent Carousel
Anatomy of <origam-carousel-item> — 3 internal parts. The root delegates to OrigamWindowItem; the image fills the inherited height.
1.origam-carousel-item
Root element. Delegates to OrigamWindowItem and inherits height from the parent Carousel.
2origam-img (embedded)
OrigamImg instance filling the slide area. Props (src, cover, alt, srcset, eager…) are forwarded automatically. Skipped when the default slot is used.
3#content slot
Projected into OrigamImg's default slot. Use for overlay captions, badges, or action buttons positioned over the image.

API

Props

Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.

transition
boolean | string
Slide-in transition name or false to disable. Forwarded to OrigamWindowItem.
alt
string
Alt text for the embedded image. Required for accessibility when src is set.
cover
boolean
false
Passes object-fit: cover to OrigamImg so the image fills the slide without distortion.
draggable
boolean
gradient
string
lazySrc
string
options
IIntersectionObserverInit
sizes
string
src
string | ISrcObject
Image URL. Forwarded to OrigamImg. When omitted, the default slot fills the slide area.
crossorigin
TCrossOrigin
referrerpolicy
TReferrerPolicy
srcset
string
Responsive image srcset. Forwarded to OrigamImg.
position
string
color
TColor
bgColor
TColor
aspectRatio
string | number
contentClass
string
height
number | string
maxHeight
number | string
maxWidth
number | string
minHeight
number | string
minWidth
number | string
width
number | string
id
string
class
string | Array<string> | object
style
string | Array<string> | object | StyleValue
Inline styles forwarded to the root OrigamWindowItem element.
tag
string
padding
boolean | number | string
paddingTop
boolean | number | string
paddingLeft
boolean | number | string
paddingBottom
boolean | number | string
paddingRight
boolean | number | string
paddingBlock
boolean | number | string
paddingInline
boolean | number | string
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string
margin
boolean | number | string
marginTop
boolean | number | string
marginLeft
boolean | number | string
marginBottom
boolean | number | string
marginRight
boolean | number | string
marginBlock
boolean | number | string
marginInline
boolean | number | string
marginInlineStart
boolean | number | string
marginInlineEnd
boolean | number | string
marginBlockStart
boolean | number | string
marginBlockEnd
boolean | number | string
border
boolean | number | string | TDirectionBoth | Array<TDirectionBoth>
borderTop
boolean | number | string
borderLeft
boolean | number | string
borderBottom
boolean | number | string
borderRight
boolean | number | string
borderBlock
boolean | number | string
borderInline
boolean | number | string
borderInlineStart
boolean | number | string
borderInlineEnd
boolean | number | string
borderBlockStart
boolean | number | string
borderBlockEnd
boolean | number | string
borderColor
string
borderStyle
string
borderTopColor
TColor
borderRightColor
TColor
borderBottomColor
TColor
borderLeftColor
TColor
borderInlineStartColor
TColor
borderInlineEndColor
TColor
borderBlockStartColor
TColor
borderBlockEndColor
TColor
rounded
boolean | number | string | TRounded | null | undefined
roundedTopRight
boolean | number | string
roundedTopLeft
boolean | number | string
roundedBottomLeft
boolean | number | string
roundedBottomRight
boolean | number | string
roundedStartStart
boolean | number | string
roundedStartEnd
boolean | number | string
roundedEndStart
boolean | number | string
roundedEndEnd
boolean | number | string
eager
boolean
false
Loads the image immediately instead of using IntersectionObserver lazy loading.
reverseTransition
boolean | string
Reverse (slide-out) transition. Forwarded to OrigamWindowItem.
value
any
Model value used by OrigamWindow to identify the active slide.
disabled
boolean
false
Prevents this slide from being selected.
selectedClass
string

API

Slots

Emplacements de contenu exposés par ce composant.

#default
Full slide content. When used, the embedded OrigamImg is replaced entirely by this slot.
#content
Projected into the OrigamImg default slot — renders on top of the image (overlay text, badges, etc.).
#error
Shown inside OrigamImg when the image fails to load.
#placeholder
Shown inside OrigamImg while the image is still loading.

API

Membres exposés

Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.

<T extends object>(props: T, exclude?: string[]) => Partial<T>
Utility to forward a filtered subset of props to a child component (OrigamImg or OrigamWindowItem).
Ref<string>
Reactive CSS string generated by useStyle for the carousel item.
string
Unique style-sheet ID for this instance.
() => void
Injects the computed style sheet into the document.
() => void
Removes the injected style sheet.
Ref<boolean>
True once the style sheet has been injected into the DOM.

Personnalisation

Variables CSS

Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.

Display mode of the root element.
Height inherited from the parent Carousel container.

Inclusion

Accessibilité

Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.

Interactions clavier

Interactions clavier
ToucheAction
TabFocus moves to interactive content inside the slide (links, buttons, form elements).

Notes

  • When src is set, always provide a meaningful alt attribute. An empty alt="" is acceptable for purely decorative images.
  • Inactive slides are hidden from the accessibility tree by OrigamWindowItem (aria-hidden="true") — only the active slide is reachable by keyboard and screen readers.

Interactif

Playground

Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.

Rendu de l’aperçu en cours…

Usage

Exemples

Extraits de code prêts à coller dans vos templates.

Basic slide with image

vue

Custom slide content

vue

Loading placeholder

vue

Écosystème

Famille

Composants du même dossier qui partagent les conventions et se composent souvent ensemble.