The Collapse component creates an expandable/collapsible content section using DaisyUI's collapse component. It displays a heading that users can click to reveal or hide additional content, perfect for FAQs, detailed descriptions, or space-saving content organization.
The component is ideal for creating accordion-style interfaces, FAQ sections, or any content that benefits from progressive disclosure.
- Heading: Clickable title text that toggles the collapse state
- Body: Rich text content (HTML) that expands/collapses
No Visual Builder style options are currently configured for the Collapse component.
[Placeholder for Collapse component screenshot showing expanded and collapsed states]
Collapse.astro- Main component implementationcollapse.graphql- GraphQL fragment for component data
- Uses native HTML checkbox for state management (no JavaScript required)
- DaisyUI handles all styling and animations
- Supports rich HTML content in the body
- Fully accessible with keyboard navigation
- Mobile-friendly touch interactions