Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    Grid Pattern

    Garis grid tipis di belakang konten, dengan sel sorotan yang berdenyut lembut dan pudar opsional.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    Plan, build, and ship in one place

    Roadmaps, issues, and releases that stay in sync with your code.

    <x-markas.grid-pattern mask="radial" :cells="[[2, 1], [10, 2], [3, 6], [11, 7]]" class="rounded-xl border border-line bg-surface px-6 py-12">
        <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-2xl font-semibold text-balance text-ink">Plan, build, and ship in one place</h2>
            <p class="max-w-80 text-sm text-muted">Roadmaps, issues, and releases that stay in sync with your code.</p>
            <div class="flex gap-2">
                <x-markas.button>Start free</x-markas.button>
                <x-markas.button variant="secondary">Book a demo</x-markas.button>
            </div>
        </div>
    </x-markas.grid-pattern>
    import { Button } from "@/components/markas/Button";
    import { GridPattern } from "@/components/markas/GridPattern";
    
    export default function GridPatternExample() {
      return (
        <GridPattern
          mask="radial"
          cells={[
            [2, 1],
            [10, 2],
            [3, 6],
            [11, 7],
          ]}
          className="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <div className="grid justify-items-center gap-4 text-center">
            <h2 className="text-2xl font-semibold text-balance text-ink">
              Plan, build, and ship in one place
            </h2>
            <p className="max-w-80 text-sm text-muted">
              Roadmaps, issues, and releases that stay in sync with your code.
            </p>
            <div className="flex gap-2">
              <Button>Start free</Button>
              <Button variant="secondary">Book a demo</Button>
            </div>
          </div>
        </GridPattern>
      );
    }
    <script setup lang="ts">
    import Button from "@/components/markas/Button.vue";
    import GridPattern from "@/components/markas/GridPattern.vue";
    </script>
    
    <template>
      <GridPattern
        mask="radial"
        :cells="[
          [2, 1],
          [10, 2],
          [3, 6],
          [11, 7],
        ]"
        class="rounded-xl border border-line bg-surface px-6 py-12"
      >
        <div class="grid justify-items-center gap-4 text-center">
          <h2 class="text-2xl font-semibold text-balance text-ink">
            Plan, build, and ship in one place
          </h2>
          <p class="max-w-80 text-sm text-muted">
            Roadmaps, issues, and releases that stay in sync with your code.
          </p>
          <div class="flex gap-2">
            <Button>Start free</Button>
            <Button variant="secondary">Book a demo</Button>
          </div>
        </div>
      </GridPattern>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import GridPattern from "$lib/components/markas/GridPattern.svelte";
    </script>
    
    <GridPattern
      mask="radial"
      cells={[
        [2, 1],
        [10, 2],
        [3, 6],
        [11, 7],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Plan, build, and ship in one place
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Roadmaps, issues, and releases that stay in sync with your code.
        </p>
        <div class="flex gap-2">
          <Button>Start free</Button>
          <Button variant="secondary">Book a demo</Button>
        </div>
      </div>
    </GridPattern>
    ---
    import Button from "@/components/markas/Button.astro";
    import GridPattern from "@/components/markas/GridPattern.astro";
    ---
    
    <GridPattern
      mask="radial"
      cells={[
        [2, 1],
        [10, 2],
        [3, 6],
        [11, 7],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <div class="grid justify-items-center gap-4 text-center">
        <h2 class="text-2xl font-semibold text-balance text-ink">
          Plan, build, and ship in one place
        </h2>
        <p class="max-w-80 text-sm text-muted">
          Roadmaps, issues, and releases that stay in sync with your code.
        </p>
        <div class="flex gap-2">
          <Button>Start free</Button>
          <Button variant="secondary">Book a demo</Button>
        </div>
      </div>
    </GridPattern>
    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { GridPattern } from "./markas/grid-pattern.component";
    
    @Component({
      selector: "markas-example",
      imports: [Button, GridPattern],
      template: `
        <div
          markas-grid-pattern
          mask="radial"
          [cells]="cells"
          class="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <div class="grid justify-items-center gap-4 text-center">
            <h2 class="text-2xl font-semibold text-balance text-ink">
              Plan, build, and ship in one place
            </h2>
            <p class="max-w-80 text-sm text-muted">
              Roadmaps, issues, and releases that stay in sync with your code.
            </p>
            <div class="flex gap-2">
              <button markas-button>Start free</button>
              <button markas-button variant="secondary">Book a demo</button>
            </div>
          </div>
        </div>
      `,
    })
    export default class GridPatternFixture {
      protected readonly cells: [number, number][] = [
        [2, 1],
        [10, 2],
        [3, 6],
        [11, 7],
      ];
    }

    Contoh

    Daftar newsletter

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Get the changelog

    One short email when we ship something new. No spam.

    Section fitur

    Everything your team needs

    • Roadmaps Plan quarters at a glance.
    • Issues Triage bugs in seconds.
    • Releases Ship with notes that write themselves.
    • Insights See where time really goes.

    Everything your team needs

    • RoadmapsPlan quarters at a glance.
    • IssuesTriage bugs in seconds.
    • ReleasesShip with notes that write themselves.
    • InsightsSee where time really goes.

    Everything your team needs

    • RoadmapsPlan quarters at a glance.
    • IssuesTriage bugs in seconds.
    • ReleasesShip with notes that write themselves.
    • InsightsSee where time really goes.

    Everything your team needs

    • Roadmaps Plan quarters at a glance.
    • Issues Triage bugs in seconds.
    • Releases Ship with notes that write themselves.
    • Insights See where time really goes.

    Everything your team needs

    • RoadmapsPlan quarters at a glance.
    • IssuesTriage bugs in seconds.
    • ReleasesShip with notes that write themselves.
    • InsightsSee where time really goes.

    Kartu status

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Operational

    All systems running

    API, dashboard, and webhooks are healthy. Last checked 1 minute ago.

    Instalasi

    npx markasui@latest add grid-pattern

    Pemakaian

    <x-markas.grid-pattern :cells="[[2, 1], [10, 3]]" class="rounded-xl border border-line bg-surface px-6 py-12">
        <h2 class="text-2xl font-semibold text-ink">Rencanakan, bangun, dan rilis di satu tempat</h2>
        <x-markas.button>Mulai sekarang</x-markas.button>
    </x-markas.grid-pattern>

    Tidak butuh JavaScript atau Alpine.js.

    import { Button } from "@/components/markas/Button";
    import { GridPattern } from "@/components/markas/GridPattern";
    
    <GridPattern
      cells={[
        [2, 1],
        [10, 3],
      ]}
      className="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 className="text-2xl font-semibold text-ink">
        Rencanakan, bangun, dan rilis di satu tempat
      </h2>
      <Button>Mulai sekarang</Button>
    </GridPattern>;
    <template>
      <GridPattern
        :cells="[
          [2, 1],
          [10, 3],
        ]"
        class="rounded-xl border border-line bg-surface px-6 py-12"
      >
        <h2 class="text-2xl font-semibold text-ink">
          Rencanakan, bangun, dan rilis di satu tempat
        </h2>
        <Button>Mulai sekarang</Button>
      </GridPattern>
    </template>
    <script lang="ts">
      import Button from "$lib/components/markas/Button.svelte";
      import GridPattern from "$lib/components/markas/GridPattern.svelte";
    </script>
    
    <GridPattern
      cells={[
        [2, 1],
        [10, 3],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Rencanakan, bangun, dan rilis di satu tempat
      </h2>
      <Button>Mulai sekarang</Button>
    </GridPattern>
    ---
    import Button from "@/components/markas/Button.astro";
    import GridPattern from "@/components/markas/GridPattern.astro";
    ---
    
    <GridPattern
      cells={[
        [2, 1],
        [10, 3],
      ]}
      class="rounded-xl border border-line bg-surface px-6 py-12"
    >
      <h2 class="text-2xl font-semibold text-ink">
        Rencanakan, bangun, dan rilis di satu tempat
      </h2>
      <Button>Mulai sekarang</Button>
    </GridPattern>

    Tanpa JavaScript di browser; markup dirender di server.

    import { Component } from "@angular/core";
    import { Button } from "./markas/button.component";
    import { GridPattern } from "./markas/grid-pattern.component";
    
    @Component({
      selector: "app-hero",
      imports: [Button, GridPattern],
      template: `
        <div
          markas-grid-pattern
          [cells]="cells"
          class="rounded-xl border border-line bg-surface px-6 py-12"
        >
          <h2 class="text-2xl font-semibold text-ink">
            Rencanakan, bangun, dan rilis di satu tempat
          </h2>
          <button markas-button>Mulai sekarang</button>
        </div>
      `,
    })
    export class Hero {
      readonly cells: [number, number][] = [
        [2, 1],
        [10, 3],
      ];
    }

    Komponen ini berupa atribut pada div, jadi class, style, dan atribut lain tetap di elemen akar.

    • cells menerima pasangan [kolom, baris] dari kiri atas, mulai 0.
    • Sel sorotan berdenyut bergantian. Dengan reduced motion sel diam.
    • Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.

    Props

    NamaTipeDefaultKeterangan
    cellSizenumber32Lebar dan tinggi satu sel grid dalam piksel.
    cells[column, row][][]Sel yang disorot, dihitung dari kiri atas mulai 0. Sel sorotan berdenyut bergantian.
    colormuted | primary | success | warning | dangermutedWarna token garis dan sel sorotan, sudah dilembutkan dengan opacity.
    masknone | radial | linearnonePudarkan grid ke arah tepi (radial) atau ke bawah (linear).
    children / slotslot / ReactNode / snippet-Konten yang tampil di atas grid.

    Aksesibilitas

    • Lapisan grid memakai aria-hidden dan mengabaikan pointer.
    • Dengan reduced motion, sel sorotan diam dengan kekuatan penuh.

    Komponen terkait

    Komponen latar lain dengan class yang sama di setiap framework.