Skip to content

feat: add ReqoreAccordion component#511

Open
Foxhoundn wants to merge 5 commits intodevelopfrom
feature/accordion
Open

feat: add ReqoreAccordion component#511
Foxhoundn wants to merge 5 commits intodevelopfrom
feature/accordion

Conversation

@Foxhoundn
Copy link
Member

@Foxhoundn Foxhoundn commented Feb 17, 2026

Summary

  • New ReqoreAccordion component for collapsible content sections
  • Smooth expand/collapse animation using CSS grid grid-template-rows transition
  • Keyboard accessible (Enter/Space toggle, aria-expanded, role="button")
  • Supports single and multi-expand modes via allowMultiple prop
  • Per-item customization: icon, iconColor, intent, badge, disabled, isOpen
  • Standard ReQore props: size, intent, flat, rounded, fluid, minimal, effect, customTheme, tooltip, disabled
  • 15 Storybook stories covering all features and real-world examples (FAQ, Settings)
  • 20 unit tests covering rendering, interaction, keyboard, callbacks, and edge cases
  • Version bump 0.61.0 → 0.62.0

Test plan

  • All 343 tests pass (yarn precheck)
  • Lint clean
  • TypeScript build succeeds
  • Visual verification in Storybook

🤖 Generated with Claude Code

Foxhoundn and others added 5 commits February 17, 2026 11:46
Collapsible content sections with smooth CSS grid animation, keyboard
accessibility, per-item intents, badges, and single/multi expand modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
useReqoreTheme was being called inside .map() which violates React's
rules of hooks. Extracted each item into its own memo'd component so
the hook is called at the top level.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Storybook's controls addon crashes when trying to serialize ReactNode
content inside item arrays. Disable these controls to prevent the crash.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The @base2/pretty-print-object library used by Storybook's docs addon
hits infinite recursion when serializing React elements inside the items
array. Setting source type to 'code' uses raw source instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments