Lingkaran konsentris yang berdenyut dari tengah, cocok di belakang logo, avatar, atau ikon status.
Connect your favorite tools
Bring in GitHub, Slack, and Figma. Updates flow both ways.
Connect your favorite tools
Bring in GitHub, Slack, and Figma. Updates flow both ways.
Connect your favorite tools
Bring in GitHub, Slack, and Figma. Updates flow both ways.
Connect your favorite tools
Bring in GitHub, Slack, and Figma. Updates flow both ways.
Connect your favorite tools
Bring in GitHub, Slack, and Figma. Updates flow both ways.
<div class="overflow-hidden rounded-xl border border-line bg-surface">
<x-markas.ripple-background :size="88" :gap="56" class="grid h-48 place-items-center border-b border-line bg-canvas">
<span class="grid size-14 place-items-center rounded-full border border-line bg-surface text-ink">
<svg class="size-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 14a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1" /><path d="M14 10a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1" /></svg>
</span>
</x-markas.ripple-background>
<div class="grid justify-items-center gap-3 p-6 text-center">
<h2 class="text-xl font-semibold text-ink">Connect your favorite tools</h2>
<p class="max-w-72 text-sm text-muted">Bring in GitHub, Slack, and Figma. Updates flow both ways.</p>
<x-markas.button>Browse integrations</x-markas.button>
</div>
</div>Contoh
Keadaan mencari
Looking for nearby devices
Keep your phone unlocked and close to this screen.
Looking for nearby devices
Keep your phone unlocked and close to this screen.
Looking for nearby devices
Keep your phone unlocked and close to this screen.
Looking for nearby devices
Keep your phone unlocked and close to this screen.
Looking for nearby devices
Keep your phone unlocked and close to this screen.
Panggilan masuk
Calling Maya Chen
Ringing on desktop and mobile
Calling Maya Chen
Ringing on desktop and mobile
Calling Maya Chen
Ringing on desktop and mobile
Calling Maya Chen
Ringing on desktop and mobile
Calling Maya Chen
Ringing on desktop and mobile
<div class="overflow-hidden rounded-xl border border-line bg-canvas">
<x-markas.ripple-background color="primary" :rings="5" :size="104" :gap="56" class="grid h-56 place-items-center">
<span class="grid size-20 place-items-center rounded-full border border-line bg-surface text-xl font-semibold text-ink">MC</span>
</x-markas.ripple-background>
<div class="grid justify-items-center gap-4 px-6 pb-8 text-center">
<div class="grid gap-1">
<h3 class="text-base font-semibold text-ink">Calling Maya Chen</h3>
<p class="text-sm text-muted">Ringing on desktop and mobile</p>
</div>
<x-markas.button variant="danger">End call</x-markas.button>
</div>
</div>Ubin ringkas
Inbox zero
New replies will show up here as soon as they arrive.
Inbox zero
New replies will show up here as soon as they arrive.
Inbox zero
New replies will show up here as soon as they arrive.
Inbox zero
New replies will show up here as soon as they arrive.
Inbox zero
New replies will show up here as soon as they arrive.
<div class="flex items-center gap-4 rounded-xl border border-line bg-surface p-4">
<x-markas.ripple-background :rings="3" :size="40" :gap="24" class="grid size-24 shrink-0 place-items-center rounded-lg bg-canvas">
<span class="grid size-10 place-items-center rounded-full border border-line bg-surface text-muted">
<svg class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2" /><path d="m3 7 9 6 9-6" /></svg>
</span>
</x-markas.ripple-background>
<div class="grid gap-1">
<h3 class="text-base font-semibold text-ink">Inbox zero</h3>
<p class="text-sm text-muted">New replies will show up here as soon as they arrive.</p>
</div>
</div>Instalasi
npx markasui@latest add ripple-backgroundpnpm dlx markasui@latest add ripple-backgroundyarn dlx markasui@latest add ripple-backgroundbunx --bun markasui@latest add ripple-background- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
resources/views/components/markas/ripple-background.blade.php.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/RippleBackground.tsx.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/RippleBackground.vue.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/lib/components/markas/RippleBackground.svelte.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/RippleBackground.astro.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/app/markas/ripple-background.component.ts.
Pemakaian
<x-markas.ripple-background :size="88" :gap="56" class="grid h-48 place-items-center rounded-xl bg-canvas">
<span class="grid size-14 place-items-center rounded-full border border-line bg-surface">MC</span>
</x-markas.ripple-background>Tidak butuh JavaScript atau Alpine.js.
import { RippleBackground } from "@/components/markas/RippleBackground";
<RippleBackground
size={88}
gap={56}
className="grid h-48 place-items-center rounded-xl bg-canvas"
>
<span className="grid size-14 place-items-center rounded-full border border-line bg-surface">
MC
</span>
</RippleBackground>;<template>
<RippleBackground
:size="88"
:gap="56"
class="grid h-48 place-items-center rounded-xl bg-canvas"
>
<span
class="grid size-14 place-items-center rounded-full border border-line bg-surface"
>MC</span
>
</RippleBackground>
</template><script lang="ts">
import RippleBackground from "$lib/components/markas/RippleBackground.svelte";
</script>
<RippleBackground
size={88}
gap={56}
class="grid h-48 place-items-center rounded-xl bg-canvas"
>
<span
class="grid size-14 place-items-center rounded-full border border-line bg-surface"
>
MC
</span>
</RippleBackground>---
import RippleBackground from "@/components/markas/RippleBackground.astro";
---
<RippleBackground
size={88}
gap={56}
class="grid h-48 place-items-center rounded-xl bg-canvas"
>
<span class="grid size-14 place-items-center rounded-full border border-line bg-surface">
MC
</span>
</RippleBackground>import { Component } from "@angular/core";
import { RippleBackground } from "./markas/ripple-background.component";
@Component({
selector: "app-call",
imports: [RippleBackground],
template: `
<div
markas-ripple-background
size="88"
gap="56"
class="grid h-48 place-items-center rounded-xl bg-canvas"
>
<span
class="grid size-14 place-items-center rounded-full border border-line bg-surface"
>
MC
</span>
</div>
`,
})
export class Call {}Angular memakai attribute selector pada div native, jadi class, aria-*, dan atribut lain tetap di elemen akar.
- Lingkaran berada di tengah komponen. Letakkan ikon atau avatar di tengah dengan
grid place-items-center. - Kalau denyut punya arti, misalnya sedang mencari, sampaikan juga lewat teks (misalnya dengan
role="status"). - Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.
Props
| Nama | Tipe | Default | Keterangan |
|---|---|---|---|
rings | number | 6 | Jumlah lingkaran, maksimal 12. |
size | number | 120 | Diameter lingkaran paling dalam dalam piksel. |
gap | number | 64 | Pertambahan diameter tiap lingkaran dari lingkaran sebelumnya, dalam piksel. |
color | muted | primary | success | warning | danger | muted | Warna token lingkaran. Lingkaran luar memudar otomatis. |
children / slot | slot / ReactNode | - | Konten yang tampil di atas lingkaran, biasanya di tengah. |
Aksesibilitas
- Lapisan lingkaran memakai aria-hidden dan mengabaikan pointer.
- Dengan reduced motion, lingkaran berhenti berdenyut.
- Kalau denyut punya arti (misalnya sedang mencari), sampaikan juga lewat teks.
Komponen terkait
Komponen latar lain dengan class yang sama di setiap framework.
- Aurora BackgroundBidang warna bercahaya yang bergeser pelan di belakang konten, dari token primary dan satu token aksen.
- Background BeamsBerkas cahaya tipis melengkung yang mengalir, berdenyut, atau jatuh dan memercik di belakang konten. Murni SVG dan CSS, tanpa JavaScript.
- Background BoxesGrid kotak miring, datar, atau berperspektif yang menyala di bawah kursor lalu memudar, hanya dengan CSS hover.
- Background LinesGaris SVG yang tergambar lalu menghilang bergantian, berupa gelombang, sinar dari satu titik, atau kisi. Dibuat untuk hero.
- Dot PatternGrid titik kecil di belakang konten, dengan pudar radial atau linear opsional. Murni CSS, tanpa JavaScript.
- Gradient BorderMembungkus kartu, tombol, atau kolom dengan border gradien bergerak yang berputar, berkilau, atau berdenyut, dengan pendar lembut opsional.