page FAQcomponent { seo { title = "FAQ component" description = "Reusable faq component." } view {
W WRNexusJS
core component

FAQ

Reusable faq component.

@wrnexus/ui 0.2.658 props0 slots0 events

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

PropTypeRequirementDefault
classstringOptional""
eyebrowstringOptional""
titlestringOptional"Frequently asked questions"
descriptionstringOptional""
itemsstringOptional[]
centeredbooleanOptionaltrue
allowMultiplebooleanOptionalfalse
defaultOpenIndexnumberOptional0

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}" /> }
}
} }