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.
Same class names in Blade and React, so our Laravel pages and the React app finally match.
Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
Finally a component library our designers and engineers both enjoy opening on Monday.
1 of 4
We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
Same class names in Blade and React, so our Laravel pages and the React app finally match.
Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
Finally a component library our designers and engineers both enjoy opening on Monday.
1 of 4
We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
Same class names in Blade and React, so our Laravel pages and the React app finally match.
Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
Finally a component library our designers and engineers both enjoy opening on Monday.
1 of 4
We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
Same class names in Blade and React, so our Laravel pages and the React app finally match.
Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
Finally a component library our designers and engineers both enjoy opening on Monday.
1 of 4
We replaced three internal UI kits with MarkasUI. New hires ship their first screen in an afternoon.
Same class names in Blade and React, so our Laravel pages and the React app finally match.
Copy, paste, adjust the tokens. Setup took ten minutes and the docs answered the rest.
Finally a component library our designers and engineers both enjoy opening on Monday.
1 of 4
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.
Tip 2
Drag to reorder
Grab a task by its handle and drop it where it belongs.
Tip 3
Mention with @
Type @ and a name to notify a teammate right inside a comment.
Tip 4
Star what matters
Starred projects stay pinned at the top of your sidebar.
Tip 1 of 4
Tip 1
Press K to search
Jump to any page, project, or teammate without touching the mouse.
Tip 2
Drag to reorder
Grab a task by its handle and drop it where it belongs.
Tip 3
Mention with @
Type @ and a name to notify a teammate right inside a comment.
Tip 4
Star what matters
Starred projects stay pinned at the top of your sidebar.
Tip 1 of 4
Tip 1
Press K to search
Jump to any page, project, or teammate without touching the mouse.
Tip 2
Drag to reorder
Grab a task by its handle and drop it where it belongs.
Tip 3
Mention with @
Type @ and a name to notify a teammate right inside a comment.
Tip 4
Star what matters
Starred projects stay pinned at the top of your sidebar.
Tip 1 of 4
Tip 1
Press K to search
Jump to any page, project, or teammate without touching the mouse.
Tip 2
Drag to reorder
Grab a task by its handle and drop it where it belongs.
Tip 3
Mention with @
Type @ and a name to notify a teammate right inside a comment.
Tip 4
Star what matters
Starred projects stay pinned at the top of your sidebar.
Tip 1 of 4
Tip 1
Press K to search
Jump to any page, project, or teammate without touching the mouse.
Tip 2
Drag to reorder
Grab a task by its handle and drop it where it belongs.
Tip 3
Mention with @
Type @ and a name to notify a teammate right inside a comment.
Tip 4
Star what matters
Starred projects stay pinned at the top of your sidebar.
Tip 1 of 4
Instalasi
npx markasui@latest add card-stackpnpm dlx markasui@latest add card-stackyarn dlx markasui@latest add card-stackbunx --bun markasui@latest add card-stack- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Pasang dependensi:
npm install alpinejs - Salin source komponen di bawah ini ke
resources/views/components/markas/card-stack.blade.php.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/CardStack.tsx.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/CardStack.vue.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/lib/components/markas/CardStack.svelte.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/CardStack.astro.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/app/markas/card-stack.component.ts.
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.
cardLabelmenerima{index}dan{total}, misalnyaTips {index} dari {total}.- Saat reduced motion kartu berganti seketika.
Props
| Nama | Tipe | Default | Keterangan |
|---|---|---|---|
cards | Blade: 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. |
label | string | Card stack | Nama aksesibel region tumpukan. Jelaskan isinya, misalnya Testimoni pelanggan. |
prevLabel | string | Previous card | Nama aksesibel tombol sebelumnya. |
nextLabel | string | Next card | Nama aksesibel tombol berikutnya. |
cardLabel | string | {index} of {total} | Nama setiap kartu dan teks posisi yang diumumkan setelah setiap perpindahan. Menerima {index} dan {total}. |
id | string | auto | Id region. Daftar kartu memakai id yang sama dengan akhiran -cards. |
items | T[] | - | 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.
- Bottom NavigationBar bawah gaya aplikasi mobile. Pill meluncur ke item terpilih, labelnya muncul, dan bar bisa menciut jadi ikon saat konten discroll.
- Chat MessagePesan dalam percakapan AI. Gelembung user di kanan, balasan asisten dengan avatar, aksi saat hover, indikator mengetik, dan efek streaming token opsional.
- Currency InputKolom uang yang memformat saat mengetik (Rp 12.500.000), menjaga posisi kursor, dan mengirim angka murni. Opsional chip nominal cepat.
- DockDock ala macOS. Ikon membesar halus mengikuti kursor atau fokus, label muncul di atas, item terbuka bertitik, dan memantul saat dibuka.
- Drag ElementsArea kartu atau stiker yang bisa diseret dengan momentum ringan di dalam batasnya. Panah menggeser item yang fokus, Escape mengembalikannya.
- Dynamic IslandPill hitam terinspirasi Dynamic Island iPhone. Memuai mulus antara keadaan idle, compact, dan expanded sambil kontennya crossfade.