Skip to content

FAQ v2

FAQ v2

FAQ v2 is an advanced tabbed accordion system designed to handle complex Q&A structures, nested list numbering, and responsive layout switching between tabbed desktop views and vertical mobile accordions.

PropertyValue
Container Max-Width1440px (1240px inner)
Heading Line99x4px (mobile) / 186x6px (desktop)
Tab Headermat-tab-group with custom red ink bar
Border1px border-radius 18px (tabs/accordions)
Animation@expandCollapse & @fadeContent (CSS variable GPU hinting)

Horizontal tab navigation with list-based panel contents.

Desktop Tabbed

Vertical accordion stack for streamlined mobile navigation.

Mobile Accordion
OptionTypeDescription
data.titlestringSection heading
data.itemsobject[]Tab/Accordion item data
item.labelstringTab/Accordion title
item.disabledbooleanDisables interaction
item.contentobjectContains title, lists (ordered/unordered), and HTML
StateLogic
selectItem()Switches activeItemId for desktop tab panel switching
toggleItem()Switches item.expanded boolean for mobile accordion toggling
@expandCollapseSmooth height transition using CSS overflow:hidden
shimmerLoading animation state for banner images
  • Keyboard navigation (Tab, Enter)
  • ARIA roles (role="tablist") for navigation
  • Screen reader announcements on expansion state changes
  • Q&A Structure: Supports complex nested lists (A. → 1. → a) using CSS counter resets.
  • Image Support: Supports responsive images with auto-sanitized alt text.
  • HTML Injection: [innerHTML] is used for dynamic descriptions; ensure content is sanitized.

View in Storybook →