Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    Wavy Background

    Lapisan gelombang lembut berwarna token yang bergeser pelan di belakang konten, berupa ombak terisi, garis sutra tipis, atau pita bertumpuk.

    Release notes, weekly

    Calm releases, every Friday

    Batch your changes, preview them together, and ship without the late night pager.

    Release notes, weekly

    Calm releases, every Friday

    Batch your changes, preview them together, and ship without the late night pager.

    Release notes, weekly

    Calm releases, every Friday

    Batch your changes, preview them together, and ship without the late night pager.

    Release notes, weekly

    Calm releases, every Friday

    Batch your changes, preview them together, and ship without the late night pager.

    Release notes, weekly

    Calm releases, every Friday

    Batch your changes, preview them together, and ship without the late night pager.

    <x-markas.wavy-background class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
        <div class="grid justify-items-center gap-4 text-center">
            <p class="text-sm font-medium text-muted">Release notes, weekly</p>
            <h2 class="text-2xl font-semibold text-balance text-ink">Calm releases, every Friday</h2>
            <p class="max-w-80 text-sm text-muted">Batch your changes, preview them together, and ship without the late night pager.</p>
            <x-markas.button>Start free trial</x-markas.button>
        </div>
    </x-markas.wavy-background>
    import { Button } from "@/components/markas/Button";
    import { WavyBackground } from "@/components/markas/WavyBackground";
    
    export default function WavyBackgroundExample() {
      return (
        <WavyBackground className="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
          <div className="grid justify-items-center gap-4 text-center">
            <p className="text-sm font-medium text-muted">Release notes, weekly</p>
            <h2 className="text-2xl font-semibold text-balance text-ink">
              Calm releases, every Friday
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Batch your changes, preview them together, and ship without the late
              night pager.
            </p>
            <Button>Start free trial</Button>
          </div>
        </WavyBackground>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import WavyBackground from "@/components/markas/WavyBackground.vue";
    </script>
    
    <template>
      <WavyBackground
        class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
      >
        <div class="grid justify-items-center gap-4 text-center">
          <p class="text-sm font-medium text-muted">Release notes, weekly</p>
          <h2 class="text-2xl font-semibold text-balance text-ink">
            Calm releases, every Friday
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Batch your changes, preview them together, and ship without the late
            night pager.
          </p>
          <Button>Start free trial</Button>
        </div>
      </WavyBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import WavyBackground from "$lib/components/markas/WavyBackground.svelte";
    </script>
    
    <WavyBackground
      class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
    >
      <div class="grid justify-items-center gap-4 text-center">
        <p class="text-sm font-medium text-muted">Release notes, weekly</p>
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Calm releases, every Friday
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Batch your changes, preview them together, and ship without the late night
          pager.
        </p>
        <Button>Start free trial</Button>
      </div>
    </WavyBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import WavyBackground from "@/components/markas/WavyBackground.astro";
    ---
    
    <WavyBackground class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
      <div class="grid justify-items-center gap-4 text-center">
        <p class="text-sm font-medium text-muted">Release notes, weekly</p>
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Calm releases, every Friday
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Batch your changes, preview them together, and ship without the late
          night pager.
        </p>
        <Button>Start free trial</Button>
      </div>
    </WavyBackground>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { WavyBackground } from "./markas/wavy-background.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, WavyBackground],
      template: `
        <div
          markas-wavy-background
          class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <p class="text-sm font-medium text-muted">Release notes, weekly</p>
            <h2 class="text-2xl font-semibold text-balance text-ink">
              Calm releases, every Friday
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Batch your changes, preview them together, and ship without the late
              night pager.
            </p>
            <button markas-button>Start free trial</button>
          </div>
        </div>
      `,
    })
    export default class WavyBackgroundExample {}

    Contoh

    Kartu newsletter dengan garis sutra

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Get the weekly changelog

    One short email every Monday. Unsubscribe anytime.

    Halaman masuk dengan pita bertumpuk

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Welcome back

    Sign in to continue to your workspace.

    Halaman 404

    404

    This page washed out to sea

    The link may be broken, or the page was moved.

    404

    This page washed out to sea

    The link may be broken, or the page was moved.

    404

    This page washed out to sea

    The link may be broken, or the page was moved.

    404

    This page washed out to sea

    The link may be broken, or the page was moved.

    404

    This page washed out to sea

    The link may be broken, or the page was moved.

    Instalasi

    npx markasui@latest add wavy-background

    Pemakaian

    <x-markas.wavy-background variant="ocean" color="primary" class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32">
        <h2 class="text-2xl font-semibold text-ink">Rilis tenang setiap Jumat</h2>
        <x-markas.button>Coba gratis</x-markas.button>
    </x-markas.wavy-background>

    Tidak butuh JavaScript atau Alpine.js.

    import { Button } from "@/components/markas/Button";
    import { WavyBackground } from "@/components/markas/WavyBackground";
    
    <WavyBackground
      variant="ocean"
      color="primary"
      className="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
    >
      <h2 className="text-2xl font-semibold text-ink">Rilis tenang setiap Jumat</h2>
      <Button>Coba gratis</Button>
    </WavyBackground>;
    <template>
      <WavyBackground
        variant="ocean"
        color="primary"
        class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
      >
        <h2 class="text-2xl font-semibold text-ink">Rilis tenang setiap Jumat</h2>
        <Button>Coba gratis</Button>
      </WavyBackground>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import WavyBackground from "$lib/components/markas/WavyBackground.svelte";
    </script>
    
    <WavyBackground
      variant="ocean"
      color="primary"
      class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
    >
      <h2 class="text-2xl font-semibold text-ink">Calm releases, every Friday</h2>
      <Button>Start free trial</Button>
    </WavyBackground>
    ---
    import Button from "@/components/markas/Button.astro";
    import WavyBackground from "@/components/markas/WavyBackground.astro";
    ---
    
    <WavyBackground
      variant="ocean"
      color="primary"
      class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Calm releases, every Friday
      </h2>
      <Button>Start free trial</Button>
    </WavyBackground>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { WavyBackground } from "./markas/wavy-background.component";
    
    @Component({
      selector: "app-release",
      imports: [Button, WavyBackground],
      template: `
        <div
          markas-wavy-background
          variant="ocean"
          color="primary"
          class="rounded-xl border border-line bg-surface px-6 pt-12 pb-32"
        >
          <h2 class="text-2xl font-semibold text-ink">
            Calm releases, every Friday
          </h2>
          <button markas-button>Start free trial</button>
        </div>
      `,
    })
    export class Release {}

    Angular memakai attribute selector pada div native, jadi class, aria-*, dan atribut lain tetap di elemen akar.

    • Gelombang adalah path SVG biasa yang bergeser ke samping dengan satu keyframe CSS. Tanpa JavaScript, canvas, atau backdrop-filter.
    • Blur ringan berupa filter CSS hanya pada lapisan gelombang, jadi konten di atasnya tetap tajam.
    • Dengan reduced motion gelombang berhenti di posisi yang sama di semua framework.
    • Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.

    Props

    NamaTipeDefaultKeterangan
    variantocean | silk | layeredoceanocean: ombak terisi yang diburamkan di bagian bawah. silk: garis tipis mengalir di tengah. layered: pita bertumpuk seperti bukit.
    colormuted | ink | primary | success | warning | dangerprimaryWarna token gelombang. Setiap lapis memakai opasitasnya sendiri.
    speedslow | normal | fastnormalKecepatan gelombang bergeser. Lapis belakang selalu sedikit lebih lambat dari lapis depan.
    wavesnumber4Jumlah lapis gelombang, dari 3 sampai 5.
    children / slotslot / ReactNode-Konten yang tampil di atas gelombang.

    Aksesibilitas

    • Lapisan gelombang memakai aria-hidden dan mengabaikan pointer.
    • Dengan reduced motion, gelombang berhenti dan diam di tempat.

    Komponen terkait

    Komponen latar lain dengan class yang sama di setiap framework.