ZoonkWeb.Components.FAQ (Zoonk v0.1.0-dev)
View SourceFAQ components for displaying frequently asked questions.
Summary
Functions
Renders all FAQ sections together with section titles.
Renders feature-related FAQ items.
Renders general FAQ items.
Renders the FAQ header with title and subtitle.
Renders a single FAQ item with question and answer using an accordion.
Renders billing and subscription related FAQ items.
Functions
Renders all FAQ sections together with section titles.
Example
<.faq_all />
Attributes
class
(:string
) - Defaults to""
.
Renders feature-related FAQ items.
Example
<.faq_features />
<.faq_features title="Features" />
Attributes
class
(:string
) - Defaults to""
.title
(:string
) - Defaults tonil
.
Renders general FAQ items.
Example
<.faq_general />
<.faq_general title="General Questions" />
Attributes
class
(:string
) - Defaults to""
.title
(:string
) - Defaults tonil
.
Renders the FAQ header with title and subtitle.
Example
<.faq_header
title="Frequently Asked Questions"
subtitle="Common questions and answers about using Zoonk"
/>
Attributes
title
(:string
) (required)subtitle
(:string
) (required)class
(:string
) - Defaults to""
.
Renders a single FAQ item with question and answer using an accordion.
Example
<.faq_item question="What is Zoonk?">
Zoonk is an educational platform that helps you learn...
</.faq_item>
Attributes
question
(:string
) (required)class
(:string
) - Defaults to""
.
Slots
inner_block
(required)
Renders billing and subscription related FAQ items.
Example
<.faq_subscriptions />
<.faq_subscriptions title="Subscriptions & Billing" />
Attributes
class
(:string
) - Defaults to""
.title
(:string
) - Defaults tonil
.