# FAQ

Shows an accordion of frequently asked questions. Clicking on a question reveals the answer interactively.

## Overview

The `FAQ` content block renders an accordion of frequently asked questions. Clicking on a question reveals the answer interactively.

```yml
- _bookshop_name: faq
  heading:
    preheading: Preheading
    title: Heading
    content: >-
      Section content. It supports multiple lines.
  background:
    color: body-tertiary
    subtle: false
  items:
    - title: First item
      description: |-
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
        efficitur nulla at tortor mattis pharetra.
    - title: Second item
      description: >-
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sagittis
        sit amet nulla sit amet efficitur.
    - title: Third item
      description: >-
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a quam
        lobortis, sodales dolor eu, posuere elit.
```

## Arguments

The content block supports the following arguments:

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `background` | background |  |  | Background style of the section. |
| `bg-class` | string |  |  | Background class attributes of the element. It supports Bootstrap attributes to modify the background styling of the element. |
| `contrast` | bool |  |  | Flag indicating if the element text should be rendered with high contrast. |
| `cover` | bool |  |  | Flag indicating if the element should be rendered fullscreen. |
| `fluid` | bool |  | `true` | Flag to set the section container to fluid design, else the section is limited to `xxl`. |
| `heading` | heading |  |  | Heading of the content block, including a preheading and content element. |
| `items` | items | yes |  | Items to include in the FAQ. |
| `justify` | select |  | `start` | Justification of the child elements. Supported values: [`start`, `end`, `center`, `between`, `around`, `evenly`]. |
| `overlay-mode` | select |  |  | Overlay mode of the element, overrides the site's general configuration. Supported values: [`light`, `dark`, `none`]. |
| `section-class` | string |  |  | Section class attributes of the element. It supports Bootstrap attributes to modify the section styling of the element. |
| `theme` | select |  |  | Color theme to apply to the element. Supported values: [`light`, `dark`]. |
| `width` | int |  | `8` | Column width of the element. For embedded elements, the width is relative to the parent's container. |
| `wrapper` | string |  |  | Class attribute of the element's wrapper. It supports Bootstrap attributes to modify the styling of the element. Icons include the `fa-wrapper` and `fa-fluid` attributes by default. |

