Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    Card Stack

    Tumpukan kartu bertingkat. Geser, tombol panah, atau tombol navigasi membuang kartu teratas lalu kartu berikutnya naik. Berputar, dengan indikator posisi.

    We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
    Maya Putri Engineering lead, Jakarta
    Same class names in Blade and React, so our Laravel pages and the React app finally match.
    Daniel Reyes Laravel developer, Surabaya
    Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
    Sari Wijaya CTO, Bandung
    Finally a component library our designers and engineers both enjoy opening on Monday.
    Tom Becker Design engineer, Berlin

    1 of 4

    We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
    Maya PutriEngineering lead, Jakarta
    Same class names in Blade and React, so our Laravel pages and the React app finally match.
    Daniel ReyesLaravel developer, Surabaya
    Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
    Sari WijayaCTO, Bandung
    Finally a component library our designers and engineers both enjoy opening on Monday.
    Tom BeckerDesign engineer, Berlin

    1 of 4

    We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
    Maya PutriEngineering lead, Jakarta
    Same class names in Blade and React, so our Laravel pages and the React app finally match.
    Daniel ReyesLaravel developer, Surabaya
    Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
    Sari WijayaCTO, Bandung
    Finally a component library our designers and engineers both enjoy opening on Monday.
    Tom BeckerDesign engineer, Berlin

    1 of 4

    We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
    Maya Putri Engineering lead, Jakarta
    Same class names in Blade and React, so our Laravel pages and the React app finally match.
    Daniel Reyes Laravel developer, Surabaya
    Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
    Sari Wijaya CTO, Bandung
    Finally a component library our designers and engineers both enjoy opening on Monday.
    Tom Becker Design engineer, Berlin

    1 of 4

    We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
    Maya PutriEngineering lead, Jakarta
    Same class names in Blade and React, so our Laravel pages and the React app finally match.
    Daniel ReyesLaravel developer, Surabaya
    Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
    Sari WijayaCTO, Bandung
    Finally a component library our designers and engineers both enjoy opening on Monday.
    Tom BeckerDesign engineer, Berlin

    1 of 4

    @php
        $card = 'grid h-full content-between gap-6 p-5';
        $quote = 'text-base text-ink';
        $person = 'flex items-center gap-3';
        $avatar = 'inline-flex size-9 items-center justify-center rounded-full bg-primary-soft text-xs font-medium text-ink';
        $meta = 'grid';
        $name = 'text-sm font-medium text-ink';
        $role = 'text-sm text-muted';
    
        $testimonials = [
            ['quote' => 'We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.', 'name' => 'Maya Putri', 'initials' => 'MP', 'role' => 'Engineering lead, Jakarta'],
            ['quote' => 'Same class names in Blade and React, so our Laravel pages and the React app finally match.', 'name' => 'Daniel Reyes', 'initials' => 'DR', 'role' => 'Laravel developer, Surabaya'],
            ['quote' => 'Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.', 'name' => 'Sari Wijaya', 'initials' => 'SW', 'role' => 'CTO, Bandung'],
            ['quote' => 'Finally a component library our designers and engineers both enjoy opening on Monday.', 'name' => 'Tom Becker', 'initials' => 'TB', 'role' => 'Design engineer, Berlin'],
        ];
    @endphp
    
    <x-markas.card-stack label="Customer testimonials">
        @foreach ($testimonials as $index => $item)
            <x-slot :name="'card-'.$index">
                <figure class="{{ $card }}">
                    <blockquote class="{{ $quote }}">{{ $item['quote'] }}</blockquote>
                    <figcaption class="{{ $person }}">
                        <span aria-hidden="true" class="{{ $avatar }}">{{ $item['initials'] }}</span>
                        <span class="{{ $meta }}">
                            <span class="{{ $name }}">{{ $item['name'] }}</span>
                            <span class="{{ $role }}">{{ $item['role'] }}</span>
                        </span>
                    </figcaption>
                </figure>
            </x-slot>
        @endforeach
    </x-markas.card-stack>
    import { CardStack } from "@/components/markas/CardStack";
    
    const card = "grid h-full content-between gap-6 p-5";
    const quote = "text-base text-ink";
    const person = "flex items-center gap-3";
    const avatar =
      "inline-flex size-9 items-center justify-center rounded-full bg-primary-soft text-xs font-medium text-ink";
    const meta = "grid";
    const name = "text-sm font-medium text-ink";
    const role = "text-sm text-muted";
    
    const testimonials = [
      {
        quote:
          "We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.",
        name: "Maya Putri",
        initials: "MP",
        role: "Engineering lead, Jakarta",
      },
      {
        quote:
          "Same class names in Blade and React, so our Laravel pages and the React app finally match.",
        name: "Daniel Reyes",
        initials: "DR",
        role: "Laravel developer, Surabaya",
      },
      {
        quote:
          "Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.",
        name: "Sari Wijaya",
        initials: "SW",
        role: "CTO, Bandung",
      },
      {
        quote:
          "Finally a component library our designers and engineers both enjoy opening on Monday.",
        name: "Tom Becker",
        initials: "TB",
        role: "Design engineer, Berlin",
      },
    ];
    
    export default function CardStackExample() {
      return (
        <CardStack label="Customer testimonials">
          {testimonials.map((item) => (
            <figure key={item.name} className={card}>
              <blockquote className={quote}>{item.quote}</blockquote>
              <figcaption className={person}>
                <span aria-hidden="true" className={avatar}>
                  {item.initials}
                </span>
                <span className={meta}>
                  <span className={name}>{item.name}</span>
                  <span className={role}>{item.role}</span>
                </span>
              </figcaption>
            </figure>
          ))}
        </CardStack>
      );
    }
    <script setup lang="ts">
    import CardStack from "@/components/markas/CardStack.vue";
    
    const card = "grid h-full content-between gap-6 p-5";
    const quote = "text-base text-ink";
    const person = "flex items-center gap-3";
    const avatar =
      "inline-flex size-9 items-center justify-center rounded-full bg-primary-soft text-xs font-medium text-ink";
    const meta = "grid";
    const name = "text-sm font-medium text-ink";
    const role = "text-sm text-muted";
    
    const testimonials = [
      {
        quote:
          "We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.",
        name: "Maya Putri",
        initials: "MP",
        role: "Engineering lead, Jakarta",
      },
      {
        quote:
          "Same class names in Blade and React, so our Laravel pages and the React app finally match.",
        name: "Daniel Reyes",
        initials: "DR",
        role: "Laravel developer, Surabaya",
      },
      {
        quote:
          "Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.",
        name: "Sari Wijaya",
        initials: "SW",
        role: "CTO, Bandung",
      },
      {
        quote:
          "Finally a component library our designers and engineers both enjoy opening on Monday.",
        name: "Tom Becker",
        initials: "TB",
        role: "Design engineer, Berlin",
      },
    ];
    </script>
    
    <template>
      <CardStack label="Customer testimonials">
        <figure v-for="item in testimonials" :key="item.name" :class="card">
          <blockquote :class="quote">{{ item.quote }}</blockquote>
          <figcaption :class="person">
            <span aria-hidden="true" :class="avatar">{{ item.initials }}</span>
            <span :class="meta">
              <span :class="name">{{ item.name }}</span>
              <span :class="role">{{ item.role }}</span>
            </span>
          </figcaption>
        </figure>
      </CardStack>
    </template>
    <script lang="ts">
      import CardStack from "$lib/components/markas/CardStack.svelte";
    
      const cardClass = "grid h-full content-between gap-6 p-5";
      const quote = "text-base text-ink";
      const person = "flex items-center gap-3";
      const avatar =
        "inline-flex size-9 items-center justify-center rounded-full bg-primary-soft text-xs font-medium text-ink";
      const meta = "grid";
      const name = "text-sm font-medium text-ink";
      const role = "text-sm text-muted";
    
      const testimonials = [
        {
          quote:
            "We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.",
          name: "Maya Putri",
          initials: "MP",
          role: "Engineering lead, Jakarta",
        },
        {
          quote:
            "Same class names in Blade and React, so our Laravel pages and the React app finally match.",
          name: "Daniel Reyes",
          initials: "DR",
          role: "Laravel developer, Surabaya",
        },
        {
          quote:
            "Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.",
          name: "Sari Wijaya",
          initials: "SW",
          role: "CTO, Bandung",
        },
        {
          quote:
            "Finally a component library our designers and engineers both enjoy opening on Monday.",
          name: "Tom Becker",
          initials: "TB",
          role: "Design engineer, Berlin",
        },
      ];
    </script>
    
    <CardStack label="Customer testimonials" items={testimonials}>
      {#snippet card(item)}
        <figure class={cardClass}>
          <blockquote class={quote}>{item.quote}</blockquote>
          <figcaption class={person}>
            <span aria-hidden="true" class={avatar}>{item.initials}</span>
            <span class={meta}>
              <span class={name}>{item.name}</span>
              <span class={role}>{item.role}</span>
            </span>
          </figcaption>
        </figure>
      {/snippet}
    </CardStack>
    ---
    import CardStack from "@/components/markas/CardStack.astro";
    
    const card = "grid h-full content-between gap-6 p-5";
    const quote = "text-base text-ink";
    const person = "flex items-center gap-3";
    const avatar =
      "inline-flex size-9 items-center justify-center rounded-full bg-primary-soft text-xs font-medium text-ink";
    const meta = "grid";
    const name = "text-sm font-medium text-ink";
    const role = "text-sm text-muted";
    
    const testimonials = [
      {
        quote:
          "We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.",
        name: "Maya Putri",
        initials: "MP",
        role: "Engineering lead, Jakarta",
      },
      {
        quote:
          "Same class names in Blade and React, so our Laravel pages and the React app finally match.",
        name: "Daniel Reyes",
        initials: "DR",
        role: "Laravel developer, Surabaya",
      },
      {
        quote:
          "Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.",
        name: "Sari Wijaya",
        initials: "SW",
        role: "CTO, Bandung",
      },
      {
        quote:
          "Finally a component library our designers and engineers both enjoy opening on Monday.",
        name: "Tom Becker",
        initials: "TB",
        role: "Design engineer, Berlin",
      },
    ];
    type Testimonial = (typeof testimonials)[number];
    ---
    
    <CardStack label="Customer testimonials" items={testimonials}>
      {
        (item: Testimonial) => (
          <figure class={card}>
            <blockquote class={quote}>{item.quote}</blockquote>
            <figcaption class={person}>
              <span aria-hidden="true" class={avatar}>{item.initials}</span>
              <span class={meta}>
                <span class={name}>{item.name}</span>
                <span class={role}>{item.role}</span>
              </span>
            </figcaption>
          </figure>
        )
      }
    </CardStack>
    import { Component } from "@angular/core";
    import { CardStack } from "./markas/card-stack.component";
    
    @Component({
      selector: "markas-example",
      imports: [CardStack],
      template: `
        <markas-card-stack label="Customer testimonials" [items]="testimonials">
          <ng-template let-item>
            <figure [class]="card">
              <blockquote [class]="quote">{{ item.quote }}</blockquote>
              <figcaption [class]="person">
                <span aria-hidden="true" [class]="avatar">{{ item.initials }}</span>
                <span [class]="meta">
                  <span [class]="name">{{ item.name }}</span>
                  <span [class]="role">{{ item.role }}</span>
                </span>
              </figcaption>
            </figure>
          </ng-template>
        </markas-card-stack>
      `,
    })
    export default class CardStackExample {
      protected readonly card = "grid h-full content-between gap-6 p-5";
      protected readonly quote = "text-base text-ink";
      protected readonly person = "flex items-center gap-3";
      protected readonly avatar =
        "inline-flex size-9 items-center justify-center rounded-full bg-primary-soft text-xs font-medium text-ink";
      protected readonly meta = "grid";
      protected readonly name = "text-sm font-medium text-ink";
      protected readonly role = "text-sm text-muted";
      protected readonly testimonials = [
        {
          quote:
            "We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.",
          name: "Maya Putri",
          initials: "MP",
          role: "Engineering lead, Jakarta",
        },
        {
          quote:
            "Same class names in Blade and React, so our Laravel pages and the React app finally match.",
          name: "Daniel Reyes",
          initials: "DR",
          role: "Laravel developer, Surabaya",
        },
        {
          quote:
            "Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.",
          name: "Sari Wijaya",
          initials: "SW",
          role: "CTO, Bandung",
        },
        {
          quote:
            "Finally a component library our designers and engineers both enjoy opening on Monday.",
          name: "Tom Becker",
          initials: "TB",
          role: "Design engineer, Berlin",
        },
      ];
    }

    Contoh

    Sorotan fitur

    Instant search

    Find any document, comment, or file in milliseconds with typo-tolerant search.

    Offline mode

    Keep working on a plane. Changes sync the moment you are back online.

    Shared inbox

    Route customer emails to the right teammate without forwarding threads.

    Feature 1 of 3

    Instant search

    Find any document, comment, or file in milliseconds with typo-tolerant search.

    Offline mode

    Keep working on a plane. Changes sync the moment you are back online.

    Shared inbox

    Route customer emails to the right teammate without forwarding threads.

    Feature 1 of 3

    Instant search

    Find any document, comment, or file in milliseconds with typo-tolerant search.

    Offline mode

    Keep working on a plane. Changes sync the moment you are back online.

    Shared inbox

    Route customer emails to the right teammate without forwarding threads.

    Feature 1 of 3

    Instant search

    Find any document, comment, or file in milliseconds with typo-tolerant search.

    Offline mode

    Keep working on a plane. Changes sync the moment you are back online.

    Shared inbox

    Route customer emails to the right teammate without forwarding threads.

    Feature 1 of 3

    Instant search

    Find any document, comment, or file in milliseconds with typo-tolerant search.

    Offline mode

    Keep working on a plane. Changes sync the moment you are back online.

    Shared inbox

    Route customer emails to the right teammate without forwarding threads.

    Feature 1 of 3

    Kartu profil

    Rina Kusuma

    Product designer in Jakarta

    • Figma
    • Design systems
    • Research

    Liam Carter

    Frontend engineer in Toronto

    • React
    • Accessibility
    • Testing

    Ayu Lestari

    Data analyst in Bandung

    • SQL
    • Python
    • Dashboards

    1 of 3

    Rina Kusuma

    Product designer in Jakarta

    • Figma
    • Design systems
    • Research

    Liam Carter

    Frontend engineer in Toronto

    • React
    • Accessibility
    • Testing

    Ayu Lestari

    Data analyst in Bandung

    • SQL
    • Python
    • Dashboards

    1 of 3

    Rina Kusuma

    Product designer in Jakarta

    • Figma
    • Design systems
    • Research

    Liam Carter

    Frontend engineer in Toronto

    • React
    • Accessibility
    • Testing

    Ayu Lestari

    Data analyst in Bandung

    • SQL
    • Python
    • Dashboards

    1 of 3

    Rina Kusuma

    Product designer in Jakarta

    • Figma
    • Design systems
    • Research

    Liam Carter

    Frontend engineer in Toronto

    • React
    • Accessibility
    • Testing

    Ayu Lestari

    Data analyst in Bandung

    • SQL
    • Python
    • Dashboards

    1 of 3

    Rina Kusuma

    Product designer in Jakarta

    • Figma
    • Design systems
    • Research

    Liam Carter

    Frontend engineer in Toronto

    • React
    • Accessibility
    • Testing

    Ayu Lestari

    Data analyst in Bandung

    • SQL
    • Python
    • Dashboards

    1 of 3

    Tips dengan tautan

    Tip 1

    Press K to search

    Jump to any page, project, or teammate without touching the mouse.

    See all shortcuts

    Tip 2

    Drag to reorder

    Grab a task by its handle and drop it where it belongs.

    See all shortcuts

    Tip 3

    Mention with @

    Type @ and a name to notify a teammate right inside a comment.

    See all shortcuts

    Tip 4

    Star what matters

    Starred projects stay pinned at the top of your sidebar.

    See all shortcuts

    Tip 1 of 4

    Tip 1

    Press K to search

    Jump to any page, project, or teammate without touching the mouse.

    See all shortcuts

    Tip 2

    Drag to reorder

    Grab a task by its handle and drop it where it belongs.

    See all shortcuts

    Tip 3

    Mention with @

    Type @ and a name to notify a teammate right inside a comment.

    See all shortcuts

    Tip 4

    Star what matters

    Starred projects stay pinned at the top of your sidebar.

    See all shortcuts

    Tip 1 of 4

    Tip 1

    Press K to search

    Jump to any page, project, or teammate without touching the mouse.

    See all shortcuts

    Tip 2

    Drag to reorder

    Grab a task by its handle and drop it where it belongs.

    See all shortcuts

    Tip 3

    Mention with @

    Type @ and a name to notify a teammate right inside a comment.

    See all shortcuts

    Tip 4

    Star what matters

    Starred projects stay pinned at the top of your sidebar.

    See all shortcuts

    Tip 1 of 4

    Tip 1

    Press K to search

    Jump to any page, project, or teammate without touching the mouse.

    See all shortcuts

    Tip 2

    Drag to reorder

    Grab a task by its handle and drop it where it belongs.

    See all shortcuts

    Tip 3

    Mention with @

    Type @ and a name to notify a teammate right inside a comment.

    See all shortcuts

    Tip 4

    Star what matters

    Starred projects stay pinned at the top of your sidebar.

    See all shortcuts

    Tip 1 of 4

    Tip 1

    Press K to search

    Jump to any page, project, or teammate without touching the mouse.

    See all shortcuts

    Tip 2

    Drag to reorder

    Grab a task by its handle and drop it where it belongs.

    See all shortcuts

    Tip 3

    Mention with @

    Type @ and a name to notify a teammate right inside a comment.

    See all shortcuts

    Tip 4

    Star what matters

    Starred projects stay pinned at the top of your sidebar.

    See all shortcuts

    Tip 1 of 4

    Instalasi

    npx markasui@latest add card-stack

    Pemakaian

    <x-markas.card-stack
        label="Testimoni pelanggan"
        prev-label="Kartu sebelumnya"
        next-label="Kartu berikutnya"
        card-label="{index} dari {total}"
    >
        <x-slot:maya>
            <figure class="grid gap-6 p-5">
                <blockquote>Orientasi karyawan baru kini cukup satu sore.</blockquote>
                <figcaption class="text-sm text-muted">Maya Putri, Kopiloka</figcaption>
            </figure>
        </x-slot:maya>
        <x-slot:daniel>
            <figure class="grid gap-6 p-5">
                <blockquote>Pintasan keyboard saja sudah menghemat berjam-jam.</blockquote>
                <figcaption class="text-sm text-muted">Daniel Reyes, Northwind</figcaption>
            </figure>
        </x-slot:daniel>
    </x-markas.card-stack>

    Butuh Alpine.js. Setiap named slot menjadi satu kartu sesuai urutan penulisan. Untuk daftar, pakai <x-slot :name="'card-'.$index"> di dalam @foreach.

    import { CardStack } from "@/components/markas/CardStack";
    
    <CardStack
      label="Testimoni pelanggan"
      prevLabel="Kartu sebelumnya"
      nextLabel="Kartu berikutnya"
      cardLabel="{index} dari {total}"
    >
      {testimoni.map((item) => (
        <figure key={item.nama} className="grid gap-6 p-5">
          <blockquote>{item.kutipan}</blockquote>
          <figcaption className="text-sm text-muted">{item.nama}</figcaption>
        </figure>
      ))}
    </CardStack>;
    <template>
      <CardStack
        label="Testimoni pelanggan"
        prev-label="Kartu sebelumnya"
        next-label="Kartu berikutnya"
        card-label="{index} dari {total}"
      >
        <figure v-for="item in testimoni" :key="item.nama" class="grid gap-6 p-5">
          <blockquote>{{ item.kutipan }}</blockquote>
          <figcaption class="text-sm text-muted">{{ item.nama }}</figcaption>
        </figure>
      </CardStack>
    </template>
    <script lang="ts">
      import CardStack from "$lib/components/markas/CardStack.svelte";
    </script>
    
    <CardStack label="Customer testimonials" items={testimonials}>
      {#snippet card(item)}
        <figure class="grid gap-6 p-5">
          <blockquote>{item.quote}</blockquote>
          <figcaption class="text-sm text-muted">{item.name}</figcaption>
        </figure>
      {/snippet}
    </CardStack>

    Svelte, Astro, dan Angular menerima kartu sebagai items dan menggambar tiap kartu lewat snippet, function child, atau ng-template. Svelte membaca {index} di atribut biasa sebagai ekspresi, jadi tulis template label di dalam kurung kurawal: cardLabel={"Tips {index} dari {total}"}.

    ---
    import CardStack from "@/components/markas/CardStack.astro";
    ---
    
    <CardStack label="Customer testimonials" items={testimonials}>
      {
        (item: Testimonial) => (
          <figure class="grid gap-6 p-5">
            <blockquote>{item.quote}</blockquote>
            <figcaption class="text-sm text-muted">{item.name}</figcaption>
          </figure>
        )
      }
    </CardStack>

    Setiap tumpukan adalah custom element kecil, jadi tetap jalan setelah view transition.

    import { Component } from "@angular/core";
    import { CardStack } from "./markas/card-stack.component";
    
    @Component({
      selector: "app-testimonials",
      imports: [CardStack],
      template: `
        <markas-card-stack label="Customer testimonials" [items]="testimonials">
          <ng-template let-item let-index="index">
            <figure class="grid gap-6 p-5">
              <blockquote>{{ item.quote }}</blockquote>
              <figcaption class="text-sm text-muted">{{ item.name }}</figcaption>
            </figure>
          </ng-template>
        </markas-card-stack>
      `,
    })
    export class Testimonials {
      testimonials = [{ quote: "Setup took ten minutes.", name: "Sari Wijaya" }];
    }

    Ikat cardLabel lewat properti kalau berisi {index}: [cardLabel]="tipLabel".

    • Tumpukan sudah menyediakan permukaan kartu (border, latar, radius). Cukup tambahkan padding dan isi di setiap kartu.
    • Tombol berikutnya, panah kanan, atau menyeret kartu teratas melewati seperempat lebar membuang kartu itu ke belakang. Tombol sebelumnya mengembalikan kartu terakhir dari kiri. Tumpukan berputar.
    • Seretan pendek memantul kembali. Tekanan yang bergerak kurang dari 4px tetap dianggap klik, jadi tautan di kartu teratas tetap berfungsi.
    • cardLabel menerima {index} dan {total}, misalnya Tips {index} dari {total}.
    • Saat reduced motion kartu berganti seketika.

    Props

    NamaTipeDefaultKeterangan
    cardsBlade: named slots · React: children · Vue: default slot-Setiap named slot (Blade) atau setiap elemen anak (React dan Vue) menjadi satu kartu, sesuai urutan. Tinggi tumpukan mengikuti kartu tertinggi.
    labelstringCard stackNama aksesibel region tumpukan. Jelaskan isinya, misalnya Testimoni pelanggan.
    prevLabelstringPrevious cardNama aksesibel tombol sebelumnya.
    nextLabelstringNext cardNama aksesibel tombol berikutnya.
    cardLabelstring{index} of {total}Nama setiap kartu dan teks posisi yang diumumkan setelah setiap perpindahan. Menerima {index} dan {total}.
    idstringautoId region. Daftar kartu memakai id yang sama dengan akhiran -cards.
    itemsT[]-Khusus Svelte, Astro, dan Angular. Satu kartu per entri, digambar oleh snippet card (Svelte), function child (Astro), atau ng-template dengan let-item dan let-index (Angular).

    Aksesibilitas

    • Tumpukan adalah region dengan aria-roledescription carousel dan setiap kartu adalah group yang dinamai cardLabel.
    • Tombol panah kiri dan kanan bergerak mundur dan maju di mana pun di dalam tumpukan, dan tumpukan itu sendiri bisa difokus.
    • Kartu di belakang kartu teratas bersifat inert, jadi Tab tidak pernah masuk ke kartu yang tersembunyi.
    • Live region polite mengumumkan posisi baru setelah setiap perpindahan.
    • Saat reduced motion kartu berganti seketika tanpa animasi lempar dan naik.

    Komponen terkait

    Komponen markasui lain dengan class yang sama di setiap framework.