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.
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.
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.
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.
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.
<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>Examples
Split
Questions and answers
Cannot find what you need? Our team replies within a day.
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.
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.
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.
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.
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.
<x-markas.faq variant="split" title="Questions and answers" description="Cannot find what you need? Our team replies within a day." :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>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.
<x-markas.faq variant="cards" title="Before you start" exclusive :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-markas.faq>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 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 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 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 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.
<x-markas.faq variant="centered" title="Still curious?" description="Short answers to the questions we hear most." :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>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.
No questions match your search
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.
<x-markas.faq variant="searchable" title="Help center" description="Search the most common questions." :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-markas.faq>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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
<x-markas.faq variant="categories" title="Frequently asked questions" exclusive :items="[['question' => 'Is there a free trial?', 'answer' => 'Yes. Every plan starts with a 14 day trial, no card required.', 'category' => 'Billing'], ['question' => 'Can I cancel at any time?', 'answer' => 'Yes. Your plan stays active until the end of the billing period.', 'category' => 'Billing'], ['question' => 'Can I invite my team?', 'answer' => 'Invite as many members as your plan allows from the team settings.', 'category' => 'Account'], ['question' => 'Where is my data stored?', 'answer' => 'Data is stored in Jakarta and backed up every day.', 'category' => 'Security']]"></x-markas.faq>Installation
npx markasui@latest add faqpnpm dlx markasui@latest add faqyarn dlx markasui@latest add faqbunx --bun markasui@latest add faq- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Install the dependency:
npm install alpinejs - Copy the component source below to
resources/views/components/markas/faq.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Faq.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Faq.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/Faq.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/Faq.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/faq.component.ts.
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-contentandinterpolate-sizewhere 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.
schemaprints FAQPage JSON-LD built from the same items. Use it once per page.
Props
| Name | Type | Default | Description |
|---|---|---|---|
items | { question: string; answer: string; category?: string }[] | [] | Questions with plain text answers. category is used by the categories variant. |
title | string | '' | Section heading (h2). It also names the section landmark. |
description | string | '' | 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. |
exclusive | boolean | false | Only one question open at a time, through a shared name attribute on details. |
schema | boolean | false | Render FAQPage JSON-LD for search engines. |
contact | Blade: 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. |
searchLabel | string | 'Search questions' | Label and placeholder of the search box (searchable). |
emptyLabel | string | 'No questions match your search' | Message announced when the search finds nothing (searchable). |
categoriesLabel | string | '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.