FAQ
Reusable faq component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<FAQ
eyebrow="eyebrow"
title="Frequently asked questions"
description="description"
items="[]"
centered="true"
/>Legacy mount name: data-component="FAQ".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
class | string | Optional | "" |
eyebrow | string | Optional | "" |
title | string | Optional | "Frequently asked questions" |
description | string | Optional | "" |
items | string | Optional | [] |
centered | boolean | Optional | true |
allowMultiple | boolean | Optional | false |
defaultOpenIndex | number | Optional | 0 |
Slots
This component does not declare a slot.
Events
This component does not declare a custom event.
Source contract
Installed source: components/FAQ.wrn
component FAQ {
props {
class = ""
eyebrow = ""
title = "Frequently asked questions"
description = ""
items = []
centered = true
allowMultiple = false
defaultOpenIndex = 0
}
view {
<FAQAccordion class="{class}" eyebrow="{eyebrow}" title="{title}" description="{description}" items="{items}" centered="{centered}" allowMultiple="{allowMultiple}" defaultOpenIndex="{defaultOpenIndex}" />
}
}