← All Components
<mth-carousel-item>
Individual slide item slotted inside an mth-carousel.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-carousel-item>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/carousel-item"></script>
<mth-carousel-item>Example</mth-carousel-item>import '@methane-ui/ui/carousel-item';
import '@methane-ui/react';
export function Example() {
return <mth-carousel-item>Example</mth-carousel-item>;
}<script setup lang="ts">
import '@methane-ui/ui/carousel-item';
</script>
<template>
<mth-carousel-item>Example</mth-carousel-item>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/carousel-item';
import { MthCarouselItemDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthCarouselItemDirective],
template: `<mth-carousel-item>Example</mth-carousel-item>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/carousel-item';
import MthCarouselItem from '@methane-ui/svelte/MthCarouselItem.svelte';
</script>
<MthCarouselItem>Example</MthCarouselItem>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
label | label | string | "" | Accessible slide label announced for this slide. |
value | value | string | "" | Optional unique slide identifier. |
active | active | boolean | false | Whether this slide is currently the active slide. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(active). | Conformance suite |
| i18n | Routes 1 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |