Add remember_state prop to accordion

Created on 24 February 2025, about 1 month ago

Problem/Motivation

For e.g. an accordion that spans multiple pages (such as an FAQ in the footer region) it may be useful for the expanded/collapsed state of accordions to persist across page loads for a given user.

Steps to reproduce

Load a page with an accordion
Collapse (or expand) accordion items
Refresh the page
Confirm they are still expanded/collapsed if appropriate

Proposed resolution

Add e.g. remember_state prop to accordion. If true, state will persist using browser's localStorage (so state only applies to current visitor)

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ashrafabed

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024