ZoonkWeb.Components.FAQ (Zoonk v0.1.0-dev)

View Source

FAQ 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

faq_all(assigns)

Renders all FAQ sections together with section titles.

Example

<.faq_all />

Attributes

  • class (:string) - Defaults to "".

faq_features(assigns)

Renders feature-related FAQ items.

Example

<.faq_features />
<.faq_features title="Features" />

Attributes

  • class (:string) - Defaults to "".
  • title (:string) - Defaults to nil.

faq_general(assigns)

Renders general FAQ items.

Example

<.faq_general />
<.faq_general title="General Questions" />

Attributes

  • class (:string) - Defaults to "".
  • title (:string) - Defaults to nil.

faq_header(assigns)

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 "".

faq_item(assigns)

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)

faq_subscriptions(assigns)

Renders billing and subscription related FAQ items.

Example

<.faq_subscriptions />
<.faq_subscriptions title="Subscriptions & Billing" />

Attributes

  • class (:string) - Defaults to "".
  • title (:string) - Defaults to nil.