Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    FAQ

    Ready made FAQ section on native details and summary, with six layouts, optional search, category tabs, and FAQPage JSON-LD.

    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.",
        },
      ];
    }

    Examples

    Split

    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.

    Cards

    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.

    Centered

    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

    Searchable

    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.

    Categories

    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.

    Installation

    npx markasui@latest add faq

    Usage

    <x-markas.faq
        variant="split"
        title="Frequently asked questions"
        description="Everything you need to know about plans and billing."
        exclusive
        schema
        :items="[
            ['question' => 'Is there a free trial?', 'answer' => 'Yes. Every plan starts with a 14 day trial.'],
            ['question' => 'Can I cancel at any time?', 'answer' => 'Yes. Your plan stays active until the end of the period.'],
        ]"
    >
        <x-slot:contact>Still have questions? <a href="/contact">Contact support</a></x-slot:contact>
    </x-markas.faq>
    
    <x-markas.faq variant="searchable" title="Help center" :items="$faqs" />
    import { Faq } from "@/components/markas/Faq";
    
    <Faq
      variant="split"
      title="Frequently asked questions"
      items={faqs}
      exclusive
      schema
      contact={
        <>
          Still have questions? <a href="/contact">Contact support</a>
        </>
      }
    />
    
    <Faq variant="categories" title="Help center" items={faqsWithCategory} />
    <template>
      <Faq
        variant="split"
        title="Frequently asked questions"
        :items="faqs"
        exclusive
        schema
      >
        <template #contact>
          Still have questions? <a href="/contact">Contact support</a>
        </template>
      </Faq>
    
      <Faq variant="searchable" title="Help center" :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 and categories use one small bundled script per page. The other variants ship no 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[] = [];
    }
    • Opening and closing is native details, so simple, split, cards, and centered need no JavaScript. Heights animate with ::details-content and interpolate-size where supported and simply snap elsewhere.
    • searchable and categories need a little state. The Blade version needs Alpine.js for those two variants only.
    • Layouts react to the section width through container queries, so split and cards stack inside narrow columns.
    • schema prints FAQPage JSON-LD built from the same items. Use it once per page.

    Props

    NameTypeDefaultDescription
    items{ question: string; answer: string; category?: string }[][]Questions with plain text answers. category is used by the categories variant.
    titlestring''Section heading (h2). It also names the section landmark.
    descriptionstring''Short text under the heading.
    variant'simple' | 'split' | 'cards' | 'centered' | 'searchable' | 'categories''simple'Layout. split puts the heading beside the list on wide containers, cards uses a two column grid, searchable adds a filter box, categories adds tabs.
    exclusivebooleanfalseOnly one question open at a time, through a shared name attribute on details.
    schemabooleanfalseRender FAQPage JSON-LD for search engines.
    contactBlade: slot or string · React: ReactNode · Vue: slot or string-Closing line such as "Still have questions?" with a link. Svelte: string or snippet. Astro: contact slot or string. Angular: contact text input or an element with the contact attribute.
    searchLabelstring'Search questions'Label and placeholder of the search box (searchable).
    emptyLabelstring'No questions match your search'Message announced when the search finds nothing (searchable).
    categoriesLabelstring'Question categories'Accessible name of the category tab list (categories).

    Accessibility

    • Questions use native details and summary, so Enter and Space open them without JavaScript.
    • The section is labelled by its heading, and the plus icon is aria-hidden.
    • The search box has an accessible name and the empty result is announced through a role status region.
    • Category tabs follow the WAI-ARIA Tabs pattern: arrow keys, Home, and End move between tabs.

    Related components

    More sections components with the same classes in every framework.