Lewati ke konten
MarkasUI
Ketik untuk mencari

    Panduan

    MarkasUI

    Form

    Feedback

    Overlay

    Navigasi

    Data

    Section

    Animasi

    Latar

    Tombol

    Template

    Halaman

    FAQ

    Section FAQ siap pakai dari details dan summary native, dengan enam tata letak, pencarian opsional, tab kategori, dan JSON-LD FAQPage.

    Frequently asked questions

    Everything you need to know about plans and billing.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Frequently asked questions

    Everything you need to know about plans and billing.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Frequently asked questions

    Everything you need to know about plans and billing.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Frequently asked questions

    Everything you need to know about plans and billing.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Frequently asked questions

    Everything you need to know about plans and billing.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support
    <x-markas.faq title="Frequently asked questions" description="Everything you need to know about plans and billing." :items="[['question' => 'Is there a free trial?', 'answer' => 'Yes. Every plan starts with a 14 day trial, no card required.'], ['question' => 'Can I cancel at any time?', 'answer' => 'Yes. Your plan stays active until the end of the billing period.'], ['question' => 'Can I invite my team?', 'answer' => 'Invite as many members as your plan allows from the team settings.'], ['question' => 'Where is my data stored?', 'answer' => 'Data is stored in Jakarta and backed up every day.']]">
        <x-slot:contact>Still have questions? <a href="#">Contact support</a></x-slot:contact>
    </x-markas.faq>
    import { Faq } from "@/components/markas/Faq";
    
    const items = [
      {
        question: "Is there a free trial?",
        answer: "Yes. Every plan starts with a 14 day trial, no card required.",
      },
      {
        question: "Can I cancel at any time?",
        answer: "Yes. Your plan stays active until the end of the billing period.",
      },
      {
        question: "Can I invite my team?",
        answer:
          "Invite as many members as your plan allows from the team settings.",
      },
      {
        question: "Where is my data stored?",
        answer: "Data is stored in Jakarta and backed up every day.",
      },
    ];
    
    export default function FaqExample() {
      return (
        <Faq
          title="Frequently asked questions"
          description="Everything you need to know about plans and billing."
          items={items}
          contact={
            <>
              Still have questions? <a href="#">Contact support</a>
            </>
          }
        />
      );
    }
    <script setup lang="ts">
    import Faq from "@/components/markas/Faq.vue";
    
    const items = [
      {
        question: "Is there a free trial?",
        answer: "Yes. Every plan starts with a 14 day trial, no card required.",
      },
      {
        question: "Can I cancel at any time?",
        answer: "Yes. Your plan stays active until the end of the billing period.",
      },
      {
        question: "Can I invite my team?",
        answer:
          "Invite as many members as your plan allows from the team settings.",
      },
      {
        question: "Where is my data stored?",
        answer: "Data is stored in Jakarta and backed up every day.",
      },
    ];
    </script>
    
    <template>
      <Faq
        title="Frequently asked questions"
        description="Everything you need to know about plans and billing."
        :items="items"
      >
        <template #contact
          >Still have questions? <a href="#">Contact support</a></template
        >
      </Faq>
    </template>
    <script lang="ts">
      import Faq from "$lib/components/markas/Faq.svelte";
    
      const items = [
        {
          question: "Is there a free trial?",
          answer: "Yes. Every plan starts with a 14 day trial, no card required.",
        },
        {
          question: "Can I cancel at any time?",
          answer:
            "Yes. Your plan stays active until the end of the billing period.",
        },
        {
          question: "Can I invite my team?",
          answer:
            "Invite as many members as your plan allows from the team settings.",
        },
        {
          question: "Where is my data stored?",
          answer: "Data is stored in Jakarta and backed up every day.",
        },
      ];
    </script>
    
    <Faq
      title="Frequently asked questions"
      description="Everything you need to know about plans and billing."
      {items}
    >
      {#snippet contact()}
        Still have questions?
        <!-- svelte-ignore a11y_invalid_attribute -->
        <a href="#">Contact support</a>
      {/snippet}
    </Faq>
    ---
    import Faq from "@/components/markas/Faq.astro";
    
    const items = [
      {
        question: "Is there a free trial?",
        answer: "Yes. Every plan starts with a 14 day trial, no card required.",
      },
      {
        question: "Can I cancel at any time?",
        answer: "Yes. Your plan stays active until the end of the billing period.",
      },
      {
        question: "Can I invite my team?",
        answer:
          "Invite as many members as your plan allows from the team settings.",
      },
      {
        question: "Where is my data stored?",
        answer: "Data is stored in Jakarta and backed up every day.",
      },
    ];
    ---
    
    <Faq
      title="Frequently asked questions"
      description="Everything you need to know about plans and billing."
      items={items}
    >
      <Fragment slot="contact">Still have questions? <a href="#">Contact support</a></Fragment>
    </Faq>
    import { Component } from "@angular/core";
    import { Faq } from "./markas/faq.component";
    
    @Component({
      selector: "markas-example",
      imports: [Faq],
      template: `
        <markas-faq
          title="Frequently asked questions"
          description="Everything you need to know about plans and billing."
          [items]="items"
        >
          <ng-container contact
            >Still have questions? <a href="#">Contact support</a></ng-container
          >
        </markas-faq>
      `,
    })
    export default class FaqExample {
      protected readonly items = [
        {
          question: "Is there a free trial?",
          answer: "Yes. Every plan starts with a 14 day trial, no card required.",
        },
        {
          question: "Can I cancel at any time?",
          answer:
            "Yes. Your plan stays active until the end of the billing period.",
        },
        {
          question: "Can I invite my team?",
          answer:
            "Invite as many members as your plan allows from the team settings.",
        },
        {
          question: "Where is my data stored?",
          answer: "Data is stored in Jakarta and backed up every day.",
        },
      ];
    }

    Contoh

    Terbagi

    Questions and answers

    Cannot find what you need? Our team replies within a day.

    Still have questions? Contact support
    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Questions and answers

    Cannot find what you need? Our team replies within a day.

    Still have questions? Contact support
    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Questions and answers

    Cannot find what you need? Our team replies within a day.

    Still have questions? Contact support
    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Questions and answers

    Cannot find what you need? Our team replies within a day.

    Still have questions? Contact support
    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Questions and answers

    Cannot find what you need? Our team replies within a day.

    Still have questions? Contact support
    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Kartu

    Before you start

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Before you start

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Before you start

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Before you start

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Before you start

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Rata tengah

    Still curious?

    Short answers to the questions we hear most.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Still curious?

    Short answers to the questions we hear most.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Still curious?

    Short answers to the questions we hear most.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Still curious?

    Short answers to the questions we hear most.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Still curious?

    Short answers to the questions we hear most.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Still have questions? Contact support

    Bisa dicari

    Help center

    Search the most common questions.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Help center

    Search the most common questions.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Help center

    Search the most common questions.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Help center

    Search the most common questions.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Help center

    Search the most common questions.

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Can I invite my team?

    Invite as many members as your plan allows from the team settings.

    Where is my data stored?

    Data is stored in Jakarta and backed up every day.

    Kategori

    Frequently asked questions

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Frequently asked questions

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Frequently asked questions

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Frequently asked questions

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Frequently asked questions

    Is there a free trial?

    Yes. Every plan starts with a 14 day trial, no card required.

    Can I cancel at any time?

    Yes. Your plan stays active until the end of the billing period.

    Instalasi

    npx markasui@latest add faq

    Pemakaian

    <x-markas.faq
        variant="searchable"
        title="Pertanyaan umum"
        search-label="Cari pertanyaan"
        empty-label="Tidak ada pertanyaan yang cocok"
        schema
        :items="[
            ['question' => 'Apakah ada uji coba gratis?', 'answer' => 'Ya. Setiap paket dimulai dengan uji coba 14 hari.'],
            ['question' => 'Bisakah saya berhenti kapan saja?', 'answer' => 'Bisa. Paket tetap aktif sampai akhir periode.'],
        ]"
    >
        <x-slot:contact>Masih punya pertanyaan? <a href="/kontak">Hubungi kami</a></x-slot:contact>
    </x-markas.faq>
    
    <x-markas.faq variant="categories" categories-label="Kategori pertanyaan" :items="$faqs" />
    import { Faq } from "@/components/markas/Faq";
    
    <Faq
      variant="searchable"
      title="Pertanyaan umum"
      items={faqs}
      searchLabel="Cari pertanyaan"
      emptyLabel="Tidak ada pertanyaan yang cocok"
      contact={
        <>
          Masih punya pertanyaan? <a href="/kontak">Hubungi kami</a>
        </>
      }
    />
    
    <Faq variant="categories" categoriesLabel="Kategori pertanyaan" items={faqs} />
    <template>
      <Faq
        variant="searchable"
        title="Pertanyaan umum"
        :items="faqs"
        search-label="Cari pertanyaan"
        empty-label="Tidak ada pertanyaan yang cocok"
      >
        <template #contact>
          Masih punya pertanyaan? <a href="/kontak">Hubungi kami</a>
        </template>
      </Faq>
    
      <Faq
        variant="categories"
        categories-label="Kategori pertanyaan"
        :items="faqs"
      />
    </template>
    <script lang="ts">
      import Faq from "$lib/components/markas/Faq.svelte";
    </script>
    
    <Faq
      variant="split"
      title="Frequently asked questions"
      items={faqs}
      exclusive
      schema
    >
      {#snippet contact()}
        Still have questions? <a href="/contact">Contact support</a>
      {/snippet}
    </Faq>
    
    <Faq variant="searchable" title="Help center" items={faqs} />
    ---
    import Faq from "@/components/markas/Faq.astro";
    ---
    
    <Faq variant="split" title="Frequently asked questions" items={faqs} exclusive schema>
      <Fragment slot="contact">
        Still have questions? <a href="/contact">Contact support</a>
      </Fragment>
    </Faq>
    
    <Faq variant="categories" title="Help center" items={faqsWithCategory} />

    searchable dan categories memakai satu script kecil yang dibundel per halaman. Varian lain tanpa JavaScript.

    import { Component } from "@angular/core";
    import { Faq, type FaqItem } from "./markas/faq.component";
    
    @Component({
      selector: "app-help",
      imports: [Faq],
      template: `
        <markas-faq
          variant="split"
          title="Frequently asked questions"
          [items]="faqs"
          exclusive
          schema
        >
          <ng-container contact>
            Still have questions? <a href="/contact">Contact support</a>
          </ng-container>
        </markas-faq>
      `,
    })
    export class Help {
      faqs: FaqItem[] = [];
    }
    • Buka tutup memakai details native, jadi simple, split, cards, dan centered tidak butuh JavaScript. Tinggi dianimasikan dengan ::details-content dan interpolate-size bila didukung, selain itu langsung berganti.
    • searchable dan categories butuh sedikit state. Versi Blade butuh Alpine.js hanya untuk dua varian itu.
    • Tata letak mengikuti lebar section lewat container query, jadi split dan cards menumpuk di kolom sempit.
    • schema mencetak JSON-LD FAQPage dari item yang sama. Pakai sekali per halaman.

    Props

    NamaTipeDefaultKeterangan
    items{ question: string; answer: string; category?: string }[][]Daftar pertanyaan dengan jawaban teks biasa. category dipakai varian categories.
    titlestring''Judul section (h2). Juga menjadi nama landmark section.
    descriptionstring''Teks singkat di bawah judul.
    variant'simple' | 'split' | 'cards' | 'centered' | 'searchable' | 'categories''simple'Tata letak. split menaruh judul di samping daftar pada kontainer lebar, cards memakai grid dua kolom, searchable menambah kotak cari, categories menambah tab.
    exclusivebooleanfalseHanya satu pertanyaan terbuka, lewat atribut name yang sama di details.
    schemabooleanfalseRender JSON-LD FAQPage untuk mesin pencari.
    contactBlade: slot or string · React: ReactNode · Vue: slot or string-Kalimat penutup seperti "Masih ada pertanyaan?" dengan tautan. Svelte: string atau snippet. Astro: slot contact atau string. Angular: input teks contact atau elemen dengan atribut contact.
    searchLabelstring'Search questions'Label dan placeholder kotak cari (searchable).
    emptyLabelstring'No questions match your search'Pesan yang diumumkan saat pencarian tidak menemukan apa pun (searchable).
    categoriesLabelstring'Question categories'Nama aksesibel daftar tab kategori (categories).

    Aksesibilitas

    • Pertanyaan memakai details dan summary native, jadi Enter dan Spasi membukanya tanpa JavaScript.
    • Section diberi nama dari judulnya, dan ikon plus diberi aria-hidden.
    • Kotak cari punya nama aksesibel dan hasil kosong diumumkan lewat region role status.
    • Tab kategori mengikuti pola Tabs WAI-ARIA: tombol panah, Home, dan End berpindah antar tab.

    Komponen terkait

    Komponen section lain dengan class yang sama di setiap framework.